17 m_iVelocityDirectRaw(y)
60 yError(
"joint id out of bound");
72 if (
vels.size() != axes) {
73 yError(
"Input vector size does not match number of axes");
84 yError(
"Joints and velocities vectors must have the same size");
103 yError(
"joint id out of bound");
117 if (
vels.size() != axes) {
vels.resize(axes); }
yarp::dev::ControlBoardHelper * castToMapper(void *p)
void velE2A(double enc, int j, double &ang, int &k)
void velA2E(double ang, int j, double &enc, int &k)
Interface for control boards implementing direct velocity control.
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 setDesiredVelocityRaw(int jnt, double vel)=0
Set the velocity of single joint.
yarp::dev::ReturnValue getDesiredVelocity(const int jnt, double &vel) override
Get the last reference velocity set by setDesiredVelocity() for a single joint.
bool uninitialize()
Clean up internal data and memory.
IVelocityDirectRaw * m_iVelocityDirectRaw
virtual ~ImplementVelocityDirect()
Destructor.
ImplementVelocityDirect(yarp::dev::IVelocityDirectRaw *y)
Constructor.
yarp::dev::ReturnValue setDesiredVelocity(int jnt, double vel) override
Set the velocity of single joint.
std::vector< int > m_buffer_ints
bool initialize(int size, const int *amap, const double *enc, const double *zos)
Initialize the internal data and alloc memory.
std::vector< double > m_buffer_doubles
yarp::dev::ReturnValue getAxes(size_t &axes) override
Get the number of controlled axes.
@ return_value_error_method_failed
Method is deprecated.
A mini-server for performing network communication in the background.
For streams capable of holding different kinds of content, check what they actually have.
An interface to the operating system, including Port based communication.