YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
fakeSimulatedWorld_test.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2026-2026 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#include <yarp/os/Network.h>
12
13#include <catch2/catch_amalgamated.hpp>
14#include <harness.h>
15
16using namespace yarp::dev;
17using namespace yarp::os;
18
19TEST_CASE("dev::fakeSimulatedWorld", "[yarp::dev]")
20{
21 YARP_REQUIRE_PLUGIN("fakeSimulatedWorld", "device");
22
23 Network::setLocalMode(true);
24
25 SECTION("Checking fakeImu device")
26 {
29
31 {
33 p_cfg.put("device", "fakeSimulatedWorld");
36 }
37
38 ddmc.view(isim);
40
41 //"Close all polydrivers and check"
42 {
43 CHECK(ddmc.close());
44 }
45 }
46
47 Network::setLocalMode(false);
48}
ISimulatedWorld Interface.
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::fakeSimulatedWorld", "[yarp::dev]")
void exec_ISimulatedWorld_test_1(ISimulatedWorld *isim)
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.