YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
frameWriter_nws_yarp_test.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025-2025 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
7
8#include <yarp/os/Network.h>
9#include <yarp/sig/Image.h>
10#include <yarp/sig/Vector.h>
11#include <yarp/dev/PolyDriver.h>
12#include <yarp/os/Time.h>
14
15#include <string>
16
17#include <catch2/catch_amalgamated.hpp>
18#include <harness.h>
19
20using namespace yarp::os;
21using namespace yarp::dev;
22using namespace yarp::sig;
23
24
25TEST_CASE("dev::frameWriter_nws_yarpTest", "[yarp::dev]")
26{
27 YARP_REQUIRE_PLUGIN("fakeFrameWriter", "device");
28 YARP_REQUIRE_PLUGIN("frameWriter_nws_yarp", "device");
29
30 Network::setLocalMode(true);
31
32 SECTION("Test the frameWriter_nws_yarp device")
33 {
38
39 p_nws.put("device", "frameWriter_nws_yarp");
40
41 p_fake.put("device", "fakeFrameWriter");
42
46
49 bool result_att = ww_nws->attach(&dd_fake);
51
53
56 }
57
58 Network::setLocalMode(false);
59}
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::frameWriter_nws_yarpTest", "[yarp::dev]")
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.