12#include <catch2/catch_amalgamated.hpp>
18TEST_CASE(
"dev::mobileBaseVelocityControl_nws_yarp",
"[yarp::dev]")
24 Network::setLocalMode(
true);
26 SECTION(
"Checking mobileBaseVelocityControl_nwc_yarp device")
36 pnws_cfg.put(
"device",
"mobileBaseVelocityControl_nws_yarp");
37 pnws_cfg.put(
"local",
"/mobileBaseVelocityControl_nws_yarp");
42 pdev_cfg.put(
"device",
"fakeNavigation");
52 pclient_cfg.put(
"device",
"mobileBaseVelocityControl_nwc_yarp");
53 pclient_cfg.put(
"local",
"/mobileBaseVelocityControl_nwc_yarp");
54 pclient_cfg.put(
"server",
"/mobileBaseVelocityControl_nws_yarp");
63 CHECK (
ivel->applyVelocityCommand(1,2,3,10));
64 double x=0;
double y=0;
double t=0;
65 CHECK(
ivel->getLastVelocityCommand(x,y,t));
78 Network::setLocalMode(
false);
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.
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.
TEST_CASE("dev::mobileBaseVelocityControl_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.
void delay(double seconds)
Wait for a certain number of seconds.
An interface to the operating system, including Port based communication.