YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FrameTransformGet_nwc_yarp_test.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
9#include <yarp/os/Property.h>
10#include <yarp/os/Network.h>
11#include <iostream>
12
14
17
18#include <catch2/catch_amalgamated.hpp>
19#include <harness.h>
20
21TEST_CASE("dev::frameTransformGet_nwc_yarp", "[yarp::dev]")
22{
23#if defined(DISABLE_FAILING_TESTS)
24 YARP_SKIP_TEST("Skipping failing tests")
25#endif
26
27 YARP_REQUIRE_PLUGIN("frameTransformGet_nwc_yarp", "device");
28
30 const bool verboseDebug = true;
31
32 SECTION("test the frameTransformGet_nwc_yarp")
33 {
38
39 p_dev.put("device", "frameTransformStorage");
41 p_nws.put("device", "frameTransformGet_nws_yarp");
43
45
48 bool result_att = ww_nws->attach(&pd_dev);
50
53
54 p_nwc.put("device", "frameTransformGet_nwc_yarp");
56
61
62 REQUIRE(pd_nwc.view(itf_get));
67 }
68
70}
TEST_CASE("dev::frameTransformGet_nwc_yarp", "[yarp::dev]")
A container for a device driver.
Definition PolyDriver.h:23
Helper interface for an object that can wrap/or "attach" to a single other device.
A mini-server for performing network communication in the background.
void close() override
Stop port activity.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
static bool setLocalMode(bool flag)
Chooses whether communication is process-local.
Definition Network.cpp:1118
A class for storing options and configuration information.
Definition Property.h:33
void exec_frameTransformStorage_test_1(IFrameTransformStorageSet *itfSet, IFrameTransformStorageGet *itfGet, IFrameTransformStorageUtils *itfUtils)
void delay(double seconds)
Wait for a certain number of seconds.
Definition Time.cpp:111