6#ifndef YARP_DEV_ROBOTDESCRIPTIONSTORAGE_H
7#define YARP_DEV_ROBOTDESCRIPTIONSTORAGE_H
31 std::recursive_mutex m_recmutex;
32 std::vector<yarp::dev::DeviceDescription> m_devices;
36 bool remove_device(
const std::string& device_name);
42 bool close()
override {
return true; }
RobotDescription_nws_yarp: This device is a storage which contains a list of the currently opened dev...
bool open(yarp::os::Searchable ¶ms) override
Open the DeviceDriver.
yarp::dev::ReturnValue registerDevice(const yarp::dev::DeviceDescription &dev) override
Register a new running yarp device into a robot description server.
bool close() override
Close the DeviceDriver.
RobotDescriptionStorage()=default
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.
virtual ~RobotDescriptionStorage()=default
bool attachAll(const yarp::dev::PolyDriverList &l) override
Attach to a list of objects.
bool detachAll() override
Detach the object (you must have first called attach).
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.
Interface implemented by all device drivers.
Interface for an object that can wrap/attach to to another.
This interface allows users to retrieve a list which contains the names and the types of the currentl...
A base class for nested structures that can be searched.