YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FakeDevice_nws_yarp.h
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
9
10#include <yarp/os/RpcServer.h>
12
14
24{
25protected:
29 const std::string m_rpc_port_name = "/fake_nws/rpc";
30
31public:
32 // From DeviceDriver
33 virtual bool open(yarp::os::Searchable &prop) override;
34 virtual bool close() override;
35
36 // From WrapperSingle
37 virtual bool attach(yarp::dev::PolyDriver *drv) override;
38 virtual bool detach() override;
39
40 // From PortReader
41 bool read(yarp::os::ConnectionReader& connection) override;
42};
FakeDevice_nws_yarp: NWS device for testing purposes
virtual bool open(yarp::os::Searchable &prop) override
Open the DeviceDriver.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
virtual bool detach() override
Detach the object (you must have first called attach).
const std::string m_rpc_port_name
yarp::dev::test::IFakeDeviceInterfaceTest1 * m_iFake
virtual bool attach(yarp::dev::PolyDriver *drv) override
Attach to another object.
virtual bool close() override
Close the DeviceDriver.
yarp::os::RpcServer m_RpcPort
Interface implemented by all device drivers.
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 fake interface for testing,debugging and development purposes.
An interface for reading from a network connection.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition PortReader.h:24
A port that is specialized as an RPC server.
Definition RpcServer.h:23
A base class for nested structures that can be searched.
Definition Searchable.h:31