YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FrameTransformGet_nws_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
8#include <yarp/os/Property.h>
9#include <yarp/os/Network.h>
10#include <iostream>
11
14
15#include <catch2/catch_amalgamated.hpp>
16#include <harness.h>
17
18TEST_CASE("dev::frameTransformGet_nws_yarp", "[yarp::dev]")
19{
20#if defined(DISABLE_FAILING_TESTS)
21 YARP_SKIP_TEST("Skipping failing tests")
22#endif
23
24 YARP_REQUIRE_PLUGIN("frameTransformGet_nws_yarp", "device");
25
27 const bool verboseDebug = true;
28
29 SECTION("test the frameTransformGet_nws_yarp alone")
30 {
33
34 p.put("device", "frameTransformGet_nws_yarp");
35 REQUIRE(pd.open(p));
36
38
39 REQUIRE(pd.close());
40 }
41
42 SECTION("test the frameTransformGet_nws_yarp")
43 {
48
49 p_dev.put("device", "frameTransformStorage");
51 p_nws.put("device", "frameTransformGet_nws_yarp");
53
55
58 bool result_att = ww_nws->attach(&pd_dev);
60
62
65 }
66
68}
TEST_CASE("dev::frameTransformGet_nws_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:1137
A class for storing options and configuration information.
Definition Property.h:32
void put(const std::string &key, const std::string &value)
Associate the given key with the given string.
Definition Property.cpp:980
void delay(double seconds)
Wait for a certain number of seconds.
Definition Time.cpp:111