YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
frameTransformSet_nwc_ros2_test.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#include <yarp/os/Network.h>
9
10#include <catch2/catch_amalgamated.hpp>
11#include <harness.h>
12
13using namespace yarp::dev;
14using namespace yarp::os;
15
16TEST_CASE("dev::frameTransformSet_nwc_ros2_test", "[yarp::dev]")
17{
18 YARP_REQUIRE_PLUGIN("frameTransformSet_nwc_ros2", "device");
19
20 Network::setLocalMode(true);
21
22 SECTION("Checking the nwc alone")
23 {
25
27 {
29 pcfg.put("device", "frameTransformSet_nwc_ros2");
31 }
32
33 //"Close all polydrivers and check"
34 {
35 CHECK(ddnwc.close());
36 }
37 }
38
39 Network::setLocalMode(false);
40}
A container for a device driver.
Definition PolyDriver.h:23
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.
A class for storing options and configuration information.
Definition Property.h:33
TEST_CASE("dev::frameTransformSet_nwc_ros2_test", "[yarp::dev]")
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.