15#include <catch2/catch_amalgamated.hpp>
29 Network::setLocalMode(
true);
32 SECTION(
"Checking RGBDSensor_nwc_yarp device with fakeDepthCamera_mini")
42 pdepth_cfg.put(
"device",
"fakeDepthCamera_mini");
52 pnws_cfg.put(
"device",
"RGBDSensor_nws_yarp");
68 INFO(
"RGBDSensor_nws_yarp and fakeDepthCamera ready");
73 pnwc_cfg.put(
"device",
"RGBDSensor_nwc_yarp");
74 pnwc_cfg.put(
"localImagePort",
"/rgbd_nwc/rgbImage:i");
75 pnwc_cfg.put(
"remoteImagePort",
"/rgbd_nws/rgbImage:o");
77 pnwc_cfg.put(
"localDepthPort",
"/rgbd_nwc/depthImage:i");
78 pnwc_cfg.put(
"remoteDepthPort",
"/rgbd_nws/depthImage:o");
80 pnwc_cfg.put(
"localRpcPort",
"/rgbd_nwc/rpc:o");
81 pnwc_cfg.put(
"remoteRpcPort",
"/rgbd_nws/rpc:i");
85 pnwc_cfg.put(
"ImageCarrier",
"fast_tcp");
86 pnwc_cfg.put(
"DepthCarrier",
"fast_tcp");
93 INFO(
"RGBDSensor_nwc_yarp ready");
101 INFO(
"RGBDSensor_nwc_yarp closed");
105 INFO(
"RGBDSensor_nws_yarp closed");
109 INFO(
"fakeDepthCamera closed");
111 INFO(
"Test complete");
115 SECTION(
"Checking RGBDSensor_nwc_yarp device with fakeDepthCamera")
136 pnws_cfg.put(
"device",
"RGBDSensor_nws_yarp");
149 INFO(
"RGBDSensor_nws_yarp and fakeDepthCamera ready");
154 pnwc_cfg.put(
"device",
"RGBDSensor_nwc_yarp");
155 pnwc_cfg.put(
"localImagePort",
"/rgbd_nwc/rgbImage:i");
156 pnwc_cfg.put(
"remoteImagePort",
"/rgbd_nws/rgbImage:o");
158 pnwc_cfg.put(
"localDepthPort",
"/rgbd_nwc/depthImage:i");
159 pnwc_cfg.put(
"remoteDepthPort",
"/rgbd_nws/depthImage:o");
161 pnwc_cfg.put(
"localRpcPort",
"/rgbd_nwc/rpc:o");
162 pnwc_cfg.put(
"remoteRpcPort",
"/rgbd_nws/rpc:i");
166 pnwc_cfg.put(
"ImageCarrier",
"fast_tcp");
167 pnwc_cfg.put(
"DepthCarrier",
"fast_tcp");
176 INFO(
"RGBDSensor_nwc_yarp ready");
185 INFO(
"RGBDSensor_nwc_yarp closed");
189 INFO(
"RGBDSensor_nws_yarp closed");
193 INFO(
"fakeDepthCamera closed");
195 INFO(
"Test complete");
198 Network::setLocalMode(
false);
TEST_CASE("dev::RGBDSensor_nwc_yarp", "[yarp::dev]")
Control interface for frame grabber devices.
A generic interface for cameras that have both color camera as well as depth camera sensor,...
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.
static void delaySystem(double seconds)
void exec_params_test(yarp::dev::PolyDriver *pdrv)
void exec_IFrameGrabberControls_test_1(IFrameGrabberControls *ictl)
void exec_iRGBDSensor_test_1(IRGBDSensor *irgbd)
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.