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>
14#include <yarp/sig/Vector.h>
15#include <yarp/os/Time.h>
16#include <mutex>
17#include <string>
18#include <yarp/dev/PolyDriver.h>
20
36{
37protected:
38 std::mutex m_mutex;
40 std::string m_local_name;
41 std::string m_remote_name;
42
43public:
44 /* DeviceDriver methods */
45 bool open(yarp::os::Searchable& config) override;
46 bool close() override;
47
51 bool getAllDevices(std::vector<yarp::dev::DeviceDescription>& dev_list) override;
52
56 bool getAllDevicesByType(const std::string &type, std::vector<yarp::dev::DeviceDescription>& dev_list) override;
57
61 bool registerDevice(const yarp::dev::DeviceDescription& dev) override;
62
66 bool unregisterDevice(const std::string& device_name) override;
67};
68
69#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:30
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:46
A base class for nested structures that can be searched.
Definition: Searchable.h:63