14#include <catch2/catch_amalgamated.hpp>
28 Network::setLocalMode(
true);
31 SECTION(
"Checking RGBDSensor_nwc_yarp device with fakeDepthCamera_mini")
41 pdepth_cfg.put(
"device",
"fakeDepthCamera_mini");
51 pnws_cfg.put(
"device",
"RGBDSensor_nws_yarp");
67 INFO(
"rgbdSensor_nws_yarp and fakeDepthCamera ready");
72 pnwc_cfg.put(
"device",
"RGBDSensor_nwc_yarp");
73 pnwc_cfg.put(
"localImagePort",
"/rgbd_nwc/rgbImage:i");
74 pnwc_cfg.put(
"remoteImagePort",
"/rgbd_nws/rgbImage:o");
76 pnwc_cfg.put(
"localDepthPort",
"/rgbd_nwc/depthImage:i");
77 pnwc_cfg.put(
"remoteDepthPort",
"/rgbd_nws/depthImage:o");
79 pnwc_cfg.put(
"localRpcPort",
"/rgbd_nwc/rpc:o");
80 pnwc_cfg.put(
"remoteRpcPort",
"/rgbd_nws/rpc:i");
84 pnwc_cfg.put(
"ImageCarrier",
"fast_tcp");
85 pnwc_cfg.put(
"DepthCarrier",
"fast_tcp");
92 INFO(
"RGBDSensor_nwc_yarp ready");
100 INFO(
"RGBDSensor_nwc_yarp closed");
104 INFO(
"RGBDSensor_nws_yarp closed");
108 INFO(
"fakeDepthCamera closed");
110 INFO(
"Test complete");
114 SECTION(
"Checking RGBDSensor_nwc_yarp device with fakeDepthCamera")
135 pnws_cfg.put(
"device",
"RGBDSensor_nws_yarp");
148 INFO(
"rgbdSensor_nws_yarp and fakeDepthCamera ready");
153 pnwc_cfg.put(
"device",
"RGBDSensor_nwc_yarp");
154 pnwc_cfg.put(
"localImagePort",
"/rgbd_nwc/rgbImage:i");
155 pnwc_cfg.put(
"remoteImagePort",
"/rgbd_nws/rgbImage:o");
157 pnwc_cfg.put(
"localDepthPort",
"/rgbd_nwc/depthImage:i");
158 pnwc_cfg.put(
"remoteDepthPort",
"/rgbd_nws/depthImage:o");
160 pnwc_cfg.put(
"localRpcPort",
"/rgbd_nwc/rpc:o");
161 pnwc_cfg.put(
"remoteRpcPort",
"/rgbd_nws/rpc:i");
165 pnwc_cfg.put(
"ImageCarrier",
"fast_tcp");
166 pnwc_cfg.put(
"DepthCarrier",
"fast_tcp");
174 INFO(
"RGBDSensor_nwc_yarp ready");
183 INFO(
"RGBDSensor_nwc_yarp closed");
187 INFO(
"RGBDSensor_nws_yarp closed");
191 INFO(
"fakeDepthCamera closed");
193 INFO(
"Test complete");
196 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_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.