RobotDescription_nws_yarp
: This device is a storage which contains a list of the currently opened device drivers.
More...
#include <robotDescriptionStorage/RobotDescriptionStorage.h>
Public Member Functions | |
RobotDescriptionStorage ()=default | |
virtual | ~RobotDescriptionStorage ()=default |
bool | open (yarp::os::Searchable ¶ms) override |
Open the DeviceDriver. | |
bool | close () override |
Close the DeviceDriver. | |
bool | detachAll () override |
Detach the object (you must have first called attach). | |
bool | attachAll (const yarp::dev::PolyDriverList &l) override |
Attach to a list of objects. | |
yarp::dev::ReturnValue | getAllDevices (std::vector< yarp::dev::DeviceDescription > &dev_list) override |
Ask the complete list of all yarp device drivers registered by a robot description server. | |
yarp::dev::ReturnValue | getAllDevicesByType (const std::string &type, std::vector< yarp::dev::DeviceDescription > &dev_list) override |
Ask a list of all registered yarp device drivers whose type corresponds to the given param. | |
yarp::dev::ReturnValue | registerDevice (const yarp::dev::DeviceDescription &dev) override |
Register a new running yarp device into a robot description server. | |
yarp::dev::ReturnValue | unregisterDevice (const std::string &device_name) override |
Unregister a running yarp device from a robot description server. | |
yarp::dev::ReturnValue | unregisterAll () override |
Unregister all the devices. | |
![]() | |
DeviceDriver () | |
DeviceDriver (const DeviceDriver &other)=delete | |
DeviceDriver (DeviceDriver &&other) noexcept=delete | |
DeviceDriver & | operator= (const DeviceDriver &other)=delete |
DeviceDriver & | operator= (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 DeviceDriver * | getImplementation () |
Some drivers are bureaucrats, pointing at others. | |
![]() | |
virtual | ~IRobotDescription () |
Destructor. | |
![]() | |
virtual | ~IMultipleWrapper () |
Destructor. | |
RobotDescription_nws_yarp
: This device is a storage which contains a list of the currently opened device drivers.
yarprobotinterface might adds/removes devices to the storage using attachAll()/detachAll() methods.
This device does not accepts parameters
Definition at line 26 of file RobotDescriptionStorage.h.
|
default |
|
virtualdefault |
|
overridevirtual |
Attach to a list of objects.
drivers | the polydriver list that you want to attach to. |
Implements yarp::dev::IMultipleWrapper.
Definition at line 89 of file RobotDescriptionStorage.cpp.
|
inlineoverridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 42 of file RobotDescriptionStorage.h.
|
overridevirtual |
Detach the object (you must have first called attach).
Implements yarp::dev::IMultipleWrapper.
Definition at line 142 of file RobotDescriptionStorage.cpp.
|
overridevirtual |
Ask the complete list of all yarp device drivers registered by a robot description server.
Implements yarp::dev::IRobotDescription.
Definition at line 19 of file RobotDescriptionStorage.cpp.
|
overridevirtual |
Ask a list of all registered yarp device drivers whose type corresponds to the given param.
Implements yarp::dev::IRobotDescription.
Definition at line 25 of file RobotDescriptionStorage.cpp.
|
inlineoverridevirtual |
Open the DeviceDriver.
config | is 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). |
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 41 of file RobotDescriptionStorage.h.
|
overridevirtual |
Register a new running yarp device into a robot description server.
Implements yarp::dev::IRobotDescription.
Definition at line 38 of file RobotDescriptionStorage.cpp.
|
overridevirtual |
Unregister all the devices.
Implements yarp::dev::IRobotDescription.
Definition at line 54 of file RobotDescriptionStorage.cpp.
|
overridevirtual |
Unregister a running yarp device from a robot description server.
Implements yarp::dev::IRobotDescription.
Definition at line 46 of file RobotDescriptionStorage.cpp.