YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Map2DnwsRosTest.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2023 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
7#include <yarp/dev/IMap2D.h>
10#include <yarp/os/Network.h>
11#include <yarp/os/LogStream.h>
12#include <yarp/dev/PolyDriver.h>
15
16#include <catch2/catch_amalgamated.hpp>
17#include <harness.h>
18
19using namespace yarp::dev;
20using namespace yarp::dev::Nav2D;
21using namespace yarp::sig;
22using namespace yarp::os;
23
24TEST_CASE("dev::map2D_nws_ros_Test", "[yarp::dev]")
25{
26 YARP_REQUIRE_PLUGIN("map2D_nws_ros", "device");
27
28 Network::setLocalMode(true);
29
30 SECTION("Checking map2D_nws_ros device")
31 {
33
35 {
37 pmapserver_cfg.put("device", "map2D_nws_ros");
39 }
40
41 //"Close all polydrivers and check"
42 {
44 }
45 }
46
47 Network::setLocalMode(false);
48}
contains the definition of a Map2DArea type
contains the definition of a Map2DLocation type
TEST_CASE("dev::map2D_nws_ros_Test", "[yarp::dev]")
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.
Definition jointData.cpp:13
An interface to the operating system, including Port based communication.