104 std::lock_guard lock (
m_mutex);
126 if (!connection.
isValid()) {
return false;}
127 if (!
m_RPC) {
return false;}
129 std::lock_guard<std::mutex> lock(
m_mutex);
bool read(yarp::os::ConnectionReader &connection) override
Read this object from a network connection.
bool parseParams(const yarp::os::Searchable &config) override
Parse the DeviceDriver parameters.
IMobileBaseVelocityControlRPCd * m_RPC
bool detach() override
Detach the object (you must have first called attach).
yarp::os::Port m_rpc_port_navigation_server
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
Velocity_InputPortProcessor m_StreamingInput
bool view(T *&x)
Get an interface to the device driver.
double vel_theta
angular velocity of the robot [deg/s]
double vel_y
velocity of the robot [m/s]
double vel_x
velocity of the robot [m/s]
virtual yarp::dev::ReturnValue applyVelocityCommand(double x_vel, double y_vel, double theta_vel, double timeout=0.1)=0
Apply a velocity command.
A container for a device driver.
bool isValid() const
Check if device is valid.
A mini-server for performing network communication in the background.
void close() override
Stop port activity.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
void useCallback(TypedReaderCallback< T > &callback) override
Set an object whose onRead method will be called when data is available.
void setStrict(bool strict=true) override
Call this to strictly keep all messages, or allow old ones to be quietly dropped.
An interface for reading from a network connection.
virtual bool isValid() const =0
void setReader(PortReader &reader) override
Set an external reader for port data.
void close() override
Stop port activity.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
A base class for nested structures that can be searched.
#define yCInfo(component,...)
#define yCError(component,...)
#define yCDebug(component,...)
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.