YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
fakeMotionControlMicro_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
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::fakeMotionControlMicro", "[yarp::dev]")
20{
21 YARP_REQUIRE_PLUGIN("fakeMotionControlMicro", "device");
22
23 Network::setLocalMode(true);
24
25 SECTION("Checking fakeMotionControlMicro device")
26 {
28 IAxisInfo* iaxis = nullptr;
29 IEncodersTimed* ienc = nullptr;
30
32 {
34 p_cfg.put("device", "fakeMotionControlMicro");
37 }
38
39 ddmc.view(iaxis); REQUIRE(iaxis);
40 ddmc.view(ienc); REQUIRE(ienc);
43
44 //"Close all polydrivers and check"
45 {
46 CHECK(ddmc.close());
47 }
48 }
49
50 Network::setLocalMode(false);
51}
Interface for getting information about specific axes, if available.
Definition IAxisInfo.h:37
Control board, extend encoder interface with timestamps.
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::fakeMotionControlMicro", "[yarp::dev]")
void exec_iAxisInfo_test_1(IAxisInfo *iinfo, std::string jname="joint0")
void exec_params_test(yarp::dev::PolyDriver *pdrv)
void exec_iEncodersTimed_test_1(IEncodersTimed *ienc)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.
Definition OSTestMsg.cpp:13