YARP
Yet Another Robot Platform
RobotDescriptionClient.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef YARP_DEV_ROBOTDESCRIPTION_CLIENT_H
8 #define YARP_DEV_ROBOTDESCRIPTION_CLIENT_H
9 
10 #include <yarp/os/Network.h>
11 #include <yarp/os/BufferedPort.h>
15 #include <yarp/sig/Vector.h>
16 #include <yarp/os/Time.h>
17 #include <mutex>
18 #include <string>
19 #include <yarp/dev/PolyDriver.h>
21 
37 {
38 protected:
39  std::mutex m_mutex;
41  std::string m_local_name;
42  std::string m_remote_name;
43 
44 public:
45  /* DeviceDriver methods */
46  bool open(yarp::os::Searchable& config) override;
47  bool close() override;
48 
52  bool getAllDevices(std::vector<yarp::dev::DeviceDescription>& dev_list) override;
53 
57  bool getAllDevicesByType(const std::string &type, std::vector<yarp::dev::DeviceDescription>& dev_list) override;
58 
62  bool registerDevice(const yarp::dev::DeviceDescription& dev) override;
63 
67  bool unregisterDevice(const std::string& device_name) override;
68 };
69 
70 #endif // YARP_DEV_ROBOTDESCRIPTION_CLIENT_H
define control board standard interfaces
contains the definition of a Vector type
robotDescriptionClient: This client device is used to connect to a robotDescriptionServer and ask inf...
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool getAllDevices(std::vector< yarp::dev::DeviceDescription > &dev_list) override
Ask the complete list of all yarp device drivers registered by a robot description server.
bool registerDevice(const yarp::dev::DeviceDescription &dev) override
Register a new running yarp device into a robot description server.
bool unregisterDevice(const std::string &device_name) override
Unregister a running yarp device from a robot description server.
bool close() override
Close the DeviceDriver.
bool 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.
Definition: DeviceDriver.h:35
This interface allows users to retrieve a list which contains the names and the types of the currentl...
A mini-server for network communication.
Definition: Port.h:47
A base class for nested structures that can be searched.
Definition: Searchable.h:66