YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
fakeImu_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>
12
13#include <catch2/catch_amalgamated.hpp>
14#include <harness.h>
15
16using namespace yarp::dev;
17using namespace yarp::os;
18
19TEST_CASE("dev::fakeImu", "[yarp::dev]")
20{
21 YARP_REQUIRE_PLUGIN("fakeIMU", "device");
22
23 Network::setLocalMode(true);
24
25 SECTION("Checking fakeImu device")
26 {
29
31 {
33 p_cfg.put("device", "fakeIMU");
36 }
37
38 ddmc.view(iimu);
40
41 //"Close all polydrivers and check"
42 {
43 CHECK(ddmc.close());
44 }
45 }
46
47 Network::setLocalMode(false);
48}
Device interface to one or multiple orientation sensors, such as IMUs with on board estimation algori...
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::fakeImu", "[yarp::dev]")
void exec_IOrientationSensors_test_1(IOrientationSensors *ios)
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.