16#include <catch2/catch_amalgamated.hpp>
26 "AxisName (\"axisA1\" \"axisA2\") \n";
32 "AxisName (\"axisB1\" \"axisB2\" \"axisB3\") \n";
38 "AxisName (\"axisC1\" \"axisC2\" \"axisC3\" \"axisC4\") \n";
41 "name /testRemapperRobot/a\n"
45 "name /testRemapperRobot/b\n"
49 "name /testRemapperRobot/c\n"
53TEST_CASE(
"dev::remotecontrolboardremapperTest2",
"[yarp::dev]")
58 Network::setLocalMode(
true);
60 SECTION(
"Test the invalid configurations of remotecontrolboardremapper")
64 std::vector<std::unique_ptr<PolyDriver>>
fmcbs;
65 std::vector<std::unique_ptr<PolyDriver>>
wrappers;
85 for(
int i=0; i < 3; i++)
87 fmcbs[i] = std::make_unique<PolyDriver>();
106 wrappers[i] = std::make_unique<PolyDriver>();
127 for(
int i=0; i < 3; i++)
153 pRemoteRemapper.put(
"localPortPrefix",
"/test/remoteControlBoardRemapper");
156 opts.put(
"writeStrict",
"on");
165 for(
int i=0; i < 3; i++)
169 for(
int i=0; i < 3; i++)
175 Network::setLocalMode(
false);
define control board standard interfaces
Interface for an object that can wrap/attach to to another.
Interface for a generic control board device implementing position control.
virtual yarp::dev::ReturnValue getAxes(size_t &ax)=0
Get the number of controlled axes.
A container for a device driver.
A simple collection of objects that can be described and transmitted in a portable way.
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.
void fromConfig(const char *txt, bool wipe=true)
Parses text in the configuration format described in fromConfigFile().
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.
const char * wrapperC_file_content
TEST_CASE("dev::remotecontrolboardremapperTest2", "[yarp::dev]")
const char * fmcA_file_content
const char * fmcB_file_content
const char * fmcC_file_content
const char * wrapperA_file_content
const char * wrapperB_file_content