YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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
22
35{
36protected:
37 std::mutex m_mutex;
39
40public:
41 /* DeviceDriver methods */
42 bool open(yarp::os::Searchable& config) override;
43 bool close() override;
44
48 bool getAllDevices(std::vector<yarp::dev::DeviceDescription>& dev_list) override;
49
53 bool getAllDevicesByType(const std::string &type, std::vector<yarp::dev::DeviceDescription>& dev_list) override;
54
58 bool registerDevice(const yarp::dev::DeviceDescription& dev) override;
59
63 bool unregisterDevice(const std::string& device_name) override;
64};
65
66#endif // YARP_DEV_ROBOTDESCRIPTION_CLIENT_H
define control board standard interfaces
contains the definition of a Vector type
This class is the parameters parser for class RobotDescriptionClient.
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.
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:31