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
12
13#include <yarp/os/Network.h>
14#include <yarp/sig/Image.h>
15#include <yarp/sig/Vector.h>
16#include <yarp/dev/PolyDriver.h>
17#include <yarp/os/Time.h>
19
20#include <string>
21
22#include <catch2/catch_amalgamated.hpp>
23#include <harness.h>
24
25using namespace yarp::os;
26using namespace yarp::dev;
27using namespace yarp::sig;
28
29
30TEST_CASE("dev::frameGrabber_nws_yarpTest", "[yarp::dev]")
31{
32 YARP_REQUIRE_PLUGIN("fakeFrameGrabber", "device");
33 YARP_REQUIRE_PLUGIN("frameGrabber_nws_yarp", "device");
34
35 Network::setLocalMode(true);
36
37 SECTION("Test the frameGrabber_nws_yarp device")
38 {
43
44 p_nws.put("device", "frameGrabber_nws_yarp");
45
46 p_fake.put("device", "fakeFrameGrabber");
47
52
54
57 bool result_att = ww_nws->attach(&dd_fake);
59
61
64 }
65
66 Network::setLocalMode(false);
67}
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:32
static void delaySystem(double seconds)
TEST_CASE("dev::frameGrabber_nws_yarpTest", "[yarp::dev]")
void exec_params_test(yarp::dev::PolyDriver *pdrv)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.