21#include <catch2/catch_amalgamated.hpp>
37 p_nws.put(
"device",
"frameGrabber_nws_yarp");
38 p_fake.put(
"device",
"fakeFrameGrabber");
48 p_nwc.put(
"device",
"frameGrabber_nwc_yarp");
49 p_nwc.put(
"remote",
"/grabber");
50 p_nwc.put(
"local",
"/grabber/client");
64 CHECK(img.width() == 0);
65 CHECK(img.height() == 0);
67 CHECK(img.width() > 0);
68 CHECK(img.height() > 0);
75 vertices[0] = std::pair <int, int>(0, 0);
76 vertices[1] = std::pair <int, int>(10, 10);
77 CHECK(crop.width() == 0);
78 CHECK(crop.height() == 0);
80 CHECK(crop.width() > 0);
81 CHECK(crop.height() > 0);
94TEST_CASE(
"dev::frameGrabber_nwc_yarpTest",
"[yarp::dev]")
100 Network::setLocalMode(
true);
102 SECTION(
"Test the frameGrabber_nwc_yarp device with a frameGrabber_nws_yarp device (RPC mode)")
107 SECTION(
"Test the frameGrabber_nwc_yarp device with a frameGrabber_nws_yarp device (streaming mode)")
112 Network::setLocalMode(
false);
contains the definition of a Vector type
An interface for retrieving intrinsic parameter from a rgb camera.
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)
TEST_CASE("dev::frameGrabber_nwc_yarpTest", "[yarp::dev]")
void do_nws_nwc_test(bool use_stream)
void exec_IRgbVisualParams_test_1(IRgbVisualParams *irgb)
void exec_IFrameGrabberImage_test_1(IFrameGrabberImage *iframe)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.