YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
MobileBaseVelocityControl_nws_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_NWS_YARP
7#define YARP_DEV_MOBILEBASEVELOCITYCONTROL_NWS_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>
19
20#include <mutex>
21#include <string>
22
24
25class Velocity_InputPortProcessor : public yarp::os::BufferedPort<yarp::dev::MobileBaseVelocity>
26{
27public:
28 double m_timeout = 0.1;
30
31public:
33 void onRead(yarp::dev::MobileBaseVelocity& v) override;
34};
35
55{
56protected:
57 std::mutex m_mutex;
60
62
63 //thrift
65
66public:
67 /* DeviceDriver methods */
68 bool open(yarp::os::Searchable& config) override;
69 bool close() override;
70 bool detach() override;
71 bool attach(yarp::dev::PolyDriver* driver) override;
72
73public:
74 bool read(yarp::os::ConnectionReader& connection) override;
75};
76
77#endif // YARP_DEV_MOBILEBASEVELOCITYCONTROL_NWS_YARP
define control board standard interfaces
contains the definition of a Vector type
This class is the parameters parser for class MobileBaseVelocityControl_nws_yarp.
MobileBaseVelocityControl_nws_yarp: A device which allows a client to control the velocity of a mobil...
bool detach() override
Detach the object (you must have first called attach).
bool close() override
Close the DeviceDriver.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
bool attach(yarp::dev::PolyDriver *driver) override
Attach to another object.
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
yarp::dev::Nav2D::INavigation2DVelocityActions * m_iNavVel
void onRead(yarp::dev::MobileBaseVelocity &v) override
yarp::dev::Nav2D::INavigation2DVelocityActions * m_iVel
Interface implemented by all device drivers.
A container for a device driver.
Definition PolyDriver.h:23
Helper interface for an object that can wrap/or "attach" to a single other device.
A mini-server for performing network communication in the background.
An interface for reading from a network connection.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
Definition PortReader.h:24
A mini-server for network communication.
Definition Port.h:46
A base class for nested structures that can be searched.
Definition Searchable.h:31