YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
navigation2D_nws_test.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#include <yarp/os/Network.h>
7#include <yarp/os/LogStream.h>
11
12#include <catch2/catch_amalgamated.hpp>
13#include <harness.h>
14
15using namespace yarp::dev;
16using namespace yarp::dev::Nav2D;
17using namespace yarp::sig;
18using namespace yarp::os;
19
20TEST_CASE("dev::Navigation2DNwsTest", "[yarp::dev]")
21{
22 YARP_REQUIRE_PLUGIN("navigation2D_nws_yarp", "device");
23
24 Network::setLocalMode(true);
25
26 SECTION("Checking navigation2D_nws_yarp device")
27 {
29
31 {
33 pnavserver_cfg.put("device", "navigation2D_nws_yarp");
35 }
36
37 //"Close all polydrivers and check"
38 {
40 }
41 }
42
43 Network::setLocalMode(false);
44}
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
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.
TEST_CASE("dev::Navigation2DNwsTest", "[yarp::dev]")