YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
FakeDevice_nwc_yarp Class Reference

FakeDevice_nwc_yarp: NWC device for testing purposes More...

#include <fake/fakeDevice_nwc_yarp/fakeDevice_nwc_yarp.h>

+ Inheritance diagram for FakeDevice_nwc_yarp:

Public Member Functions

bool open (yarp::os::Searchable &config) override
 Open the DeviceDriver.
 
bool close () override
 Close the DeviceDriver.
 
yarp::dev::ReturnValue doSomething ()
 A method for testing purposes.
 
- Public Member Functions inherited from yarp::dev::DeviceDriver
 DeviceDriver ()
 
 DeviceDriver (const DeviceDriver &other)=delete
 
 DeviceDriver (DeviceDriver &&other) noexcept=delete
 
DeviceDriveroperator= (const DeviceDriver &other)=delete
 
DeviceDriveroperator= (DeviceDriver &&other) noexcept=delete
 
virtual ~DeviceDriver ()
 
virtual std::string id () const
 Return the id assigned to the PolyDriver.
 
virtual void setId (const std::string &id)
 Set the id for this device.
 
template<class T >
bool view (T *&x)
 Get an interface to the device driver.
 
virtual DeviceDrivergetImplementation ()
 Some drivers are bureaucrats, pointing at others.
 
- Public Member Functions inherited from yarp::dev::test::IFakeDeviceInterfaceTest1
virtual ~IFakeDeviceInterfaceTest1 ()
 Destructor.
 

Protected Attributes

FakeTestMsgs m_thrift_RPC
 
yarp::os::Port m_rpc_port_to_server
 
const std::string m_local = "/fake_nwc/rpc"
 
const std::string m_remote = "/fake_nws/rpc"
 

Detailed Description

FakeDevice_nwc_yarp: NWC device for testing purposes

Definition at line 18 of file fakeDevice_nwc_yarp.h.

Member Function Documentation

◆ close()

bool FakeDevice_nwc_yarp::close ( )
overridevirtual

Close the DeviceDriver.

Returns
true/false on success/failure.

Reimplemented from yarp::dev::DeviceDriver.

Definition at line 46 of file fakeDevice_nwc_yarp.cpp.

◆ doSomething()

yarp::dev::ReturnValue FakeDevice_nwc_yarp::doSomething ( )
virtual

A method for testing purposes.

Implements yarp::dev::test::IFakeDeviceInterfaceTest1.

Definition at line 52 of file fakeDevice_nwc_yarp.cpp.

◆ open()

bool FakeDevice_nwc_yarp::open ( yarp::os::Searchable config)
overridevirtual

Open the DeviceDriver.

Parameters
configis a list of parameters for the device. Which parameters are effective for your device can vary. See device invocation examples. If there is no example for your device, you can run the "yarpdev" program with the verbose flag set to probe what parameters the device is checking. If that fails too, you'll need to read the source code (please nag one of the yarp developers to add documentation for your device).
Returns
true/false upon success/failure

Reimplemented from yarp::dev::DeviceDriver.

Definition at line 16 of file fakeDevice_nwc_yarp.cpp.

Member Data Documentation

◆ m_local

const std::string FakeDevice_nwc_yarp::m_local = "/fake_nwc/rpc"
protected

Definition at line 27 of file fakeDevice_nwc_yarp.h.

◆ m_remote

const std::string FakeDevice_nwc_yarp::m_remote = "/fake_nws/rpc"
protected

Definition at line 28 of file fakeDevice_nwc_yarp.h.

◆ m_rpc_port_to_server

yarp::os::Port FakeDevice_nwc_yarp::m_rpc_port_to_server
protected

Definition at line 26 of file fakeDevice_nwc_yarp.h.

◆ m_thrift_RPC

FakeTestMsgs FakeDevice_nwc_yarp::m_thrift_RPC
protected

Definition at line 23 of file fakeDevice_nwc_yarp.h.


The documentation for this class was generated from the following files: