YARP
Yet Another Robot Platform
MobileBaseVelocityControl_nwc_yarp.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6#ifndef YARP_DEV_MOBILEBASEVELOCITYCONTROL_NWC_YARP
7#define YARP_DEV_MOBILEBASEVELOCITYCONTROL_NWC_YARP
8
9#include <yarp/os/Network.h>
12#include <yarp/sig/Vector.h>
13#include <yarp/os/Time.h>
14#include <yarp/dev/PolyDriver.h>
17
18#include <mutex>
19#include <string>
20
39{
40protected:
41 std::mutex m_mutex;
43 std::string m_local_name;
44 std::string m_server_name;
45 std::string m_carrier;
47
48public:
49
50 /* DeviceDriver methods */
51 bool open(yarp::os::Searchable& config) override;
52 bool close() override;
53
54 /* The following methods belong to INavigation2D interface */
55 bool applyVelocityCommand(double x_vel, double y_vel, double theta_vel, double timeout = 0.1) override;
56 bool getLastVelocityCommand(double& x_vel, double& y_vel, double& theta_vel) override;
57};
58
59#endif // YARP_DEV_MOBILEBASEVELOCITYCONTROL_NWC_YARP
define control board standard interfaces
contains the definition of a Vector type
MobileBaseVelocityControl_nwc_yarp: A device which connects to MobileBaseVelocityControl_nws_yarp to ...
bool close() override
Close the DeviceDriver.
bool applyVelocityCommand(double x_vel, double y_vel, double theta_vel, double timeout=0.1) override
Apply a velocity command.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool getLastVelocityCommand(double &x_vel, double &y_vel, double &theta_vel) override
Returns the last applied velocity command.
Interface implemented by all device drivers.
Definition: DeviceDriver.h:30
A mini-server for network communication.
Definition: Port.h:46
A base class for nested structures that can be searched.
Definition: Searchable.h:63