6#ifndef YARP_DEV_IVELOCITYDIRECT_H
7#define YARP_DEV_IVELOCITYDIRECT_H
16class IVelocityDirectRaw;
constexpr yarp::conf::vocab32_t VOCAB_VELOCITY_DIRECT_SET_ONE
constexpr yarp::conf::vocab32_t VOCAB_VELOCITY_DIRECT_SET_GROUP
constexpr yarp::conf::vocab32_t VOCAB_VELOCITY_DIRECT_SET_ALL
Interface for control boards implementing direct velocity control.
virtual yarp::dev::ReturnValue getAxes(size_t &axes)=0
Get the number of controlled axes.
virtual yarp::dev::ReturnValue getDesiredVelocityRaw(const int jnt, double &vel)=0
Get the last reference velocity set by setDesiredVelocity() for a single joint.
virtual yarp::dev::ReturnValue getDesiredVelocityRaw(std::vector< double > &vels)=0
Get the last reference velocity set by setDesiredVelocity() for all joints.
virtual yarp::dev::ReturnValue setDesiredVelocityRaw(const std::vector< int > &jnts, const std::vector< double > &vels)=0
Set the velocity of a subset of joints.
virtual yarp::dev::ReturnValue setDesiredVelocityRaw(int jnt, double vel)=0
Set the velocity of single joint.
virtual yarp::dev::ReturnValue getDesiredVelocityRaw(const std::vector< int > &jnts, std::vector< double > &vels)=0
Get the last reference velocity set by setDesiredVelocity() for a group of joints.
virtual ~IVelocityDirectRaw()
Destructor.
virtual yarp::dev::ReturnValue setDesiredVelocityRaw(const std::vector< double > &vels)=0
Set the velocity of all joints.
Interface for control boards implementing direct velocity control.
virtual yarp::dev::ReturnValue setDesiredVelocity(const std::vector< int > &jnts, const std::vector< double > &vels)=0
Set the velocity of a subset of joints.
virtual yarp::dev::ReturnValue getDesiredVelocity(const int jnt, double &vel)=0
Get the last reference velocity set by setDesiredVelocity() for a single joint.
virtual ~IVelocityDirect()
Destructor.
virtual yarp::dev::ReturnValue getAxes(size_t &axes)=0
Get the number of controlled axes.
virtual yarp::dev::ReturnValue getDesiredVelocity(std::vector< double > &vels)=0
Get the last reference velocity set by setDesiredVelocity() for all joints.
virtual yarp::dev::ReturnValue getDesiredVelocity(const std::vector< int > &jnts, std::vector< double > &vels)=0
Get the last reference velocity set by setDesiredVelocity() for a group of joints.
virtual yarp::dev::ReturnValue setDesiredVelocity(int jnt, double vel)=0
Set the velocity of single joint.
virtual yarp::dev::ReturnValue setDesiredVelocity(const std::vector< double > &vels)=0
Set the velocity of all joints.
For streams capable of holding different kinds of content, check what they actually have.
constexpr yarp::conf::vocab32_t createVocab32(char a, char b=0, char c=0, char d=0)
Create a vocab from chars.
The main, catch-all namespace for YARP.