YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
fakeNavigation_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
7#include <yarp/os/Network.h>
8#include <yarp/os/LogStream.h>
12
13#include <catch2/catch_amalgamated.hpp>
14#include <harness.h>
15
16using namespace yarp::dev;
17using namespace yarp::dev::Nav2D;
18using namespace yarp::sig;
19using namespace yarp::os;
20
21TEST_CASE("dev::FakeNavigationTest", "[yarp::dev]")
22{
23 YARP_REQUIRE_PLUGIN("fakeNavigation", "device");
24
25 Network::setLocalMode(true);
26
27 SECTION("Checking fakeNavigation device")
28 {
33
35 {
37 pfakeNavigation.put("device", "fakeNavigation");
45 }
46
47 // Do tests
49
50 //"Close all polydrivers and check"
51 {
53 }
54 }
55
56 Network::setLocalMode(false);
57}
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::FakeNavigationTest", "[yarp::dev]")
void exec_iNav2D_test_3(INavigation2DTargetActions *inav_trgt, INavigation2DControlActions *inav_ctl)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.