YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Map2D_nws_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
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_ros2_test", "[yarp::dev]")
25{
26 YARP_REQUIRE_PLUGIN("map2D_nws_ros2", "device");
27 YARP_REQUIRE_PLUGIN("map2DStorage", "device");
28
29 Network::setLocalMode(true);
30
31 SECTION("Checking map2D_nws_ros2 device")
32 {
34
36 {
38 pmapserver_cfg.put("device", "map2D_nws_ros2");
40 }
41
42 //"Close all polydrivers and check"
43 {
45 }
46 }
47
48 Network::setLocalMode(false);
49}
contains the definition of a Map2DArea type
contains the definition of a Map2DLocation type
TEST_CASE("dev::Map2D_nws_ros2_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.
An interface to the operating system, including Port based communication.