16#include <catch2/catch_amalgamated.hpp>
22TEST_CASE(
"dev::controlBoard_nws_yarp",
"[yarp::dev]")
26 Network::setLocalMode(
true);
28 SECTION(
"Checking controlBoard_nws_yarp device")
35 pcfg.put(
"device",
"controlBoard_nws_yarp");
36 pcfg.put(
"name",
"/controlboard");
47 SECTION(
"Test the controlBoard_nws_yarp device with fakeMotionControl device attached")
55 p_nws.put(
"device",
"controlBoard_nws_yarp");
56 p_nws.put(
"name",
"/controlboard");
57 p_fake.put(
"device",
"fakeMotionControl");
80 SECTION(
"IControlMode getters are exposed on the RPC interface")
88 p_nws.put(
"device",
"controlBoard_nws_yarp");
89 p_nws.put(
"name",
"/controlboard");
90 p_fake.put(
"device",
"fakeMotionControl");
91 p_fake.addGroup(
"GENERAL").put(
"Joints", 4);
157 SECTION(
"Test the controlBoard_nws_yarp device with a non-attachable device")
165 p_nws.put(
"device",
"controlBoard_nws_yarp");
166 p_nws.put(
"name",
"/controlboard");
167 p_fake2.put(
"device",
"fakeSpeaker");
190 SECTION(
"Test the controlBoard_nws_yarp device with a device attached which does not implement motion control interfaces")
198 p_nws.put(
"device",
"controlBoard_nws_yarp");
199 p_nws.put(
"name",
"/controlboard");
200 p_fake.put(
"device",
"fakeMotionControlMicro");
223 Network::setLocalMode(
false);
yarp::dev::ReturnValue ret
std::vector< yarp::dev::ControlModeEnum > modes
std::vector< yarp::dev::ControlModeEnum > modes
yarp::dev::ReturnValue ret
yarp::dev::ReturnValue ret
yarp::dev::ControlModeEnum mode
Control board, encoder interface.
virtual yarp::dev::ReturnValue getAxes(size_t &ax)=0
Get the number of controlled axes.
A container for a device driver.
Helper interface for an object that can wrap/or "attach" to a single other device.
A mini-server for performing network communication in the background.
std::string getName() const override
Get name of port.
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.
static bool connect(const std::string &src, const std::string &dest, const std::string &carrier="", bool quiet=true)
Request that an output port connect to an input port.
A mini-server for network communication.
A class for storing options and configuration information.
static void delaySystem(double seconds)
TEST_CASE("dev::controlBoard_nws_yarp", "[yarp::dev]")
void exec_params_test(yarp::dev::PolyDriver *pdrv)
For streams capable of holding different kinds of content, check what they actually have.
@ VOCAB_CM_POSITION_DIRECT
@ VOCAB_CM_POSITION_DIRECT
An interface to the operating system, including Port based communication.