6#ifndef YARP_DEV_IVELOCITYCONTROLIMPL_H
7#define YARP_DEV_IVELOCITYCONTROLIMPL_H
14class ImplementVelocityControl;
15class StubImplVelocityControlRaw;
21class FixedSizeBuffersManager;
42 bool initialize (
int size,
const int *amap,
const double *enc,
const double *zos);
63 bool getAxes(
int *axes)
override;
70 bool stop(
int j)
override;
75 bool velocityMove(
const int n_joint,
const int *joints,
const double *spds)
override;
78 bool getRefVelocities(
const int n_joint,
const int *joints,
double *vels)
override;
79 bool setRefAccelerations(
const int n_joint,
const int *joints,
const double *accs)
override;
81 bool stop(
const int n_joint,
const int *joints)
override;
106 bool NOT_YET_IMPLEMENTED(
const char *func = 0)
109 yError(
"%s: not yet implemented\n", func);
111 yError(
"Function not yet implemented\n");
119 {
return NOT_YET_IMPLEMENTED(
"getAxesRaw");}
122 {
return NOT_YET_IMPLEMENTED(
"velocityMoveRaw");}
125 {
return NOT_YET_IMPLEMENTED(
"velocityMoveRaw");}
128 {
return NOT_YET_IMPLEMENTED(
"setRefAccelerationRaw");}
131 {
return NOT_YET_IMPLEMENTED(
"setRefAccelerationsRaw");}
134 {
return NOT_YET_IMPLEMENTED(
"getRefAccelerationRaw");}
137 {
return NOT_YET_IMPLEMENTED(
"getRefAccelerationsRaw");}
140 {
return NOT_YET_IMPLEMENTED(
"stopRaw");}
143 {
return NOT_YET_IMPLEMENTED(
"stopRaw");}
147 bool velocityMoveRaw(
const int n_joint,
const int *joints,
const double *spds)
override
148 {
return NOT_YET_IMPLEMENTED(
"velocityMoveRaw");}
151 {
return NOT_YET_IMPLEMENTED(
"getRefVelocityRaw");}
154 {
return NOT_YET_IMPLEMENTED(
"getRefVelocitiesRaw");}
157 {
return NOT_YET_IMPLEMENTED(
"getRefVelocitiesRaw");}
160 {
return NOT_YET_IMPLEMENTED(
"setRefAccelerationsRaw");}
163 {
return NOT_YET_IMPLEMENTED(
"getRefAccelerationsRaw");}
165 bool stopRaw(
const int n_joint,
const int *joints)
override
166 {
return NOT_YET_IMPLEMENTED(
"stopRaw");}
Interface for control boards implementig velocity control in encoder coordinates.
Interface for control boards implementing velocity control.
yarp::dev::impl::FixedSizeBuffersManager< int > * intBuffManager
yarp::dev::impl::FixedSizeBuffersManager< double > * doubleBuffManager
bool getRefAccelerations(double *accs) override
Get reference acceleration of all joints.
bool getRefAcceleration(int j, double *acc) override
Get reference acceleration for a joint.
virtual ~ImplementVelocityControl()
Destructor.
IVelocityControlRaw * iVelocity
bool uninitialize()
Clean up internal data and memory.
bool setRefAcceleration(int j, double acc) override
Set reference acceleration for a joint.
bool stop() override
Stop motion, multiple joints.
bool initialize(int size, const int *amap, const double *enc, const double *zos)
Initialize the internal data and alloc memory.
bool setRefAccelerations(const double *accs) override
Set reference acceleration on all joints.
bool getRefVelocity(const int joint, double *vel) override
Get the last reference speed set by velocityMove for single joint.
bool getRefVelocities(double *vels) override
Get the last reference speed set by velocityMove for all joints.
bool getAxes(int *axes) override
Get the number of controlled axes.
bool velocityMove(int j, double sp) override
Start motion at a given speed, single joint.
Stub implementation of IPositionControl2Raw interface.
bool getRefAccelerationsRaw(double *accs) override
Get reference acceleration of all joints.
bool stopRaw(int j) override
Stop motion, single joint.
bool getRefVelocitiesRaw(const int n_joint, const int *joints, double *vels) override
Get the last reference speed set by velocityMove for a group of joints.
bool stopRaw(const int n_joint, const int *joints) override
Stop motion for a subset of joints.
bool getRefVelocitiesRaw(double *vels) override
Get the last reference speed set by velocityMove for all joints.
bool getAxes(int *axes) override
Get the number of controlled axes.
bool velocityMoveRaw(const double *sp) override
Start motion at a given speed, multiple joints.
bool velocityMoveRaw(int j, double sp) override
Start motion at a given speed, single joint.
bool getRefAccelerationRaw(int j, double *acc) override
Get reference acceleration for a joint.
bool getRefAccelerationsRaw(const int n_joint, const int *joints, double *accs) override
Get reference acceleration for a subset of joints.
bool setRefAccelerationsRaw(const int n_joint, const int *joints, const double *accs) override
Set reference acceleration for a subset of joints.
bool velocityMoveRaw(const int n_joint, const int *joints, const double *spds) override
Start motion at a given speed for a subset of joints.
bool setRefAccelerationRaw(int j, double acc) override
Set reference acceleration for a joint.
bool getRefVelocityRaw(const int joint, double *vel) override
Get the last reference speed set by velocityMove for single joint.
bool stopRaw() override
Stop motion, multiple joints.
bool setRefAccelerationsRaw(const double *accs) override
Set reference acceleration on all joints.
A manager of fixed size buffers in multi-thread environment.
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.