YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
frameGrabber_nws_yarp_test.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
8
11
12#include <yarp/os/Network.h>
13#include <yarp/sig/Image.h>
14#include <yarp/sig/Vector.h>
15#include <yarp/dev/PolyDriver.h>
16#include <yarp/os/Time.h>
18
19#include <string>
20
21#include <catch2/catch_amalgamated.hpp>
22#include <harness.h>
23
24using namespace yarp::os;
25using namespace yarp::dev;
26using namespace yarp::sig;
27
28
29TEST_CASE("dev::frameGrabber_nws_yarpTest", "[yarp::dev]")
30{
31 YARP_REQUIRE_PLUGIN("fakeFrameGrabber", "device");
32 YARP_REQUIRE_PLUGIN("frameGrabber_nws_yarp", "device");
33
34 Network::setLocalMode(true);
35
36 SECTION("Test the frameGrabber_nws_yarp device")
37 {
42
43 p_nws.put("device", "frameGrabber_nws_yarp");
44
45 p_fake.put("device", "fakeFrameGrabber");
46
50
53 bool result_att = ww_nws->attach(&dd_fake);
55
57
60 }
61
62 Network::setLocalMode(false);
63}
contains the definition of a Vector type
A container for a device driver.
Definition PolyDriver.h:23
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.
Definition Property.h:33
static void delaySystem(double seconds)
TEST_CASE("dev::frameGrabber_nws_yarpTest", "[yarp::dev]")
For streams capable of holding different kinds of content, check what they actually have.
Definition jointData.cpp:13
An interface to the operating system, including Port based communication.