6 #ifndef YARP_DEV_IVELOCITYCONTROLIMPL_H
7 #define YARP_DEV_IVELOCITYCONTROLIMPL_H
15 class ImplementVelocityControl;
16 class StubImplVelocityControlRaw;
25 class FixedSizeBuffersManager;
48 bool initialize (
int size,
const int *amap,
const double *enc,
const double *zos);
69 bool getAxes(
int *axes)
override;
76 bool stop(
int j)
override;
81 bool velocityMove(
const int n_joint,
const int *joints,
const double *spds)
override;
84 bool getRefVelocities(
const int n_joint,
const int *joints,
double *vels)
override;
85 bool setRefAccelerations(
const int n_joint,
const int *joints,
const double *accs)
override;
87 bool stop(
const int n_joint,
const int *joints)
override;
112 bool NOT_YET_IMPLEMENTED(
const char *func = 0)
115 yError(
"%s: not yet implemented\n", func);
117 yError(
"Function not yet implemented\n");
125 {
return NOT_YET_IMPLEMENTED(
"getAxesRaw");}
128 {
return NOT_YET_IMPLEMENTED(
"velocityMoveRaw");}
131 {
return NOT_YET_IMPLEMENTED(
"velocityMoveRaw");}
134 {
return NOT_YET_IMPLEMENTED(
"setRefAccelerationRaw");}
137 {
return NOT_YET_IMPLEMENTED(
"setRefAccelerationsRaw");}
140 {
return NOT_YET_IMPLEMENTED(
"getRefAccelerationRaw");}
143 {
return NOT_YET_IMPLEMENTED(
"getRefAccelerationsRaw");}
146 {
return NOT_YET_IMPLEMENTED(
"stopRaw");}
149 {
return NOT_YET_IMPLEMENTED(
"stopRaw");}
153 bool velocityMoveRaw(
const int n_joint,
const int *joints,
const double *spds)
override
154 {
return NOT_YET_IMPLEMENTED(
"velocityMoveRaw");}
157 {
return NOT_YET_IMPLEMENTED(
"getRefVelocityRaw");}
160 {
return NOT_YET_IMPLEMENTED(
"getRefVelocitiesRaw");}
163 {
return NOT_YET_IMPLEMENTED(
"getRefVelocitiesRaw");}
166 {
return NOT_YET_IMPLEMENTED(
"setRefAccelerationsRaw");}
169 {
return NOT_YET_IMPLEMENTED(
"getRefAccelerationsRaw");}
171 bool stopRaw(
const int n_joint,
const int *joints)
override
172 {
return NOT_YET_IMPLEMENTED(
"stopRaw");}
Interface for control boards implementig velocity control in encoder coordinates.
Interface for control boards implementing velocity control.
virtual bool setRefAcceleration(int j, double acc)=0
Set reference acceleration for a joint.
virtual bool getRefVelocity(const int joint, double *vel)
Get the last reference speed set by velocityMove for single joint.
virtual bool stop()=0
Stop motion, multiple joints.
virtual bool setRefAccelerations(const double *accs)=0
Set reference acceleration on all joints.
virtual bool getAxes(int *axes)=0
Get the number of controlled axes.
virtual bool getRefAcceleration(int j, double *acc)=0
Get reference acceleration for a joint.
virtual bool getRefAccelerations(double *accs)=0
Get reference acceleration of all joints.
virtual bool velocityMove(int j, double sp)=0
Start motion at a given speed, single joint.
virtual bool getRefVelocities(double *vels)
Get the last reference speed set by velocityMove for all joints.
yarp::dev::impl::FixedSizeBuffersManager< int > * intBuffManager
yarp::dev::impl::FixedSizeBuffersManager< double > * doubleBuffManager
ImplementVelocityControl(yarp::dev::IVelocityControlRaw *y)
Constructor.
virtual ~ImplementVelocityControl()
Destructor.
IVelocityControlRaw * iVelocity
bool uninitialize()
Clean up internal data and memory.
bool initialize(int size, const int *amap, const double *enc, const double *zos)
Initialize the internal data and alloc memory.
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.
The main, catch-all namespace for YARP.