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>
15
16#include <string>
17
18#include <catch2/catch_amalgamated.hpp>
19#include <harness.h>
20
21using namespace yarp::os;
22using namespace yarp::dev;
23using namespace yarp::sig;
24
25
26TEST_CASE("dev::frameWriter_nws_yarpTest", "[yarp::dev]")
27{
28 YARP_REQUIRE_PLUGIN("fakeFrameWriter", "device");
29 YARP_REQUIRE_PLUGIN("frameWriter_nws_yarp", "device");
30
31 Network::setLocalMode(true);
32
33 SECTION("Test the frameWriter_nws_yarp device")
34 {
39
40 p_nws.put("device", "frameWriter_nws_yarp");
41
42 p_fake.put("device", "fakeFrameWriter");
43
46
49
51
54 bool result_att = ww_nws->attach(&dd_fake);
56
58
61 }
62
63 Network::setLocalMode(false);
64}
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]")
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.
Definition OSTestMsg.cpp:13