42#include <catch2/catch_amalgamated.hpp>
48TEST_CASE(
"dev::ControlBoardRemapperTest4",
"[yarp::dev]")
54 Network::setLocalMode(
true);
56 SECTION(
"Testing an invalid configuration (subdevice not found)")
64 p_cfg.put(
"device",
"fakeMotionControl");
72 p_cfg.put(
"device",
"controlboardremapper");
73 p_cfg.put(
"joints", 2);
76 p_cfg.put(
"net0",
"0 1 0 1");
95 SECTION(
"Testing an invalid configuration")
103 p_cfg.put(
"device",
"fakeMotionControl");
104 p_cfg.put(
"name",
"fakeboard1");
106 grp.put(
"Joints", 2);
111 p_cfg.put(
"device",
"controlboardremapper");
112 p_cfg.put(
"joints", 4);
115 p_cfg.put(
"fakeboard1",
"0 3 0 3");
120 p_cfg.put(
"device",
"controlBoard_nws_yarp");
121 p_cfg.put(
"name",
"/alljoints");
146 std::vector<yarp::dev::ControlModeEnum> modes;
159 SECTION(
"Testing an invalid configuration (chain of remappers)")
168 p_cfg.put(
"device",
"fakeMotionControl");
169 p_cfg.put(
"name",
"fakeboard1");
171 grp.put(
"Joints", 2);
176 p_cfg.put(
"device",
"controlboardremapper");
177 p_cfg.put(
"joints", 4);
180 p_cfg.put(
"fakeboard1",
"0 3 0 3");
185 p_cfg.put(
"device",
"controlboardremapper");
186 p_cfg.put(
"joints", 4);
189 p_cfg.put(
"rema1",
"0 3 0 3");
194 p_cfg.put(
"device",
"controlBoard_nws_yarp");
195 p_cfg.put(
"name",
"/alljoints");
227 std::vector<yarp::dev::ControlModeEnum> modes;
241 Network::setLocalMode(
false);
define control board standard interfaces
define control board standard interfaces
Interface for getting information about specific axes, if available.
Interface for setting control mode in control board.
virtual yarp::dev::ReturnValue getControlModes(std::vector< yarp::dev::ControlModeEnum > &mode)=0
Get the current control mode (multiple joints).
Interface for an object that can wrap/attach to to another.
A container for a device driver.
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.
A single value (typically within a Bottle).
static Value * makeList()
Create a list Value.
TEST_CASE("dev::ControlBoardRemapperTest4", "[yarp::dev]")
void exec_params_test(yarp::dev::PolyDriver *pdrv)
For streams capable of holding different kinds of content, check what they actually have.
void delay(double seconds)
Wait for a certain number of seconds.
An interface to the operating system, including Port based communication.