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>
13
14#include <catch2/catch_amalgamated.hpp>
15#include <harness.h>
16
17using namespace yarp::dev;
18using namespace yarp::dev::Nav2D;
19using namespace yarp::sig;
20using namespace yarp::os;
21
22TEST_CASE("dev::FakeNavigationTest", "[yarp::dev]")
23{
24 YARP_REQUIRE_PLUGIN("fakeNavigation", "device");
25
26 Network::setLocalMode(true);
27
28 SECTION("Checking fakeNavigation device")
29 {
34
36 {
38 pfakeNavigation.put("device", "fakeNavigation");
41
48 }
49
50 // Do tests
52
53 //"Close all polydrivers and check"
54 {
56 }
57 }
58
59 Network::setLocalMode(false);
60}
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:32
TEST_CASE("dev::FakeNavigationTest", "[yarp::dev]")
void exec_iNav2D_test_3(INavigation2DTargetActions *inav_trgt, INavigation2DControlActions *inav_ctl)
void exec_params_test(yarp::dev::PolyDriver *pdrv)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.