|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_DEV_IVELOCITYCONTROLIMPL_H
10 #define YARP_DEV_IVELOCITYCONTROLIMPL_H
18 class ImplementVelocityControl;
19 class StubImplVelocityControlRaw;
28 class FixedSizeBuffersManager;
51 bool initialize (
int size,
const int *amap,
const double *enc,
const double *zos);
72 bool getAxes(
int *axes)
override;
79 bool stop(
int j)
override;
84 bool velocityMove(
const int n_joint,
const int *joints,
const double *spds)
override;
87 bool getRefVelocities(
const int n_joint,
const int *joints,
double *vels)
override;
88 bool setRefAccelerations(
const int n_joint,
const int *joints,
const double *accs)
override;
90 bool stop(
const int n_joint,
const int *joints)
override;
115 bool NOT_YET_IMPLEMENTED(
const char *func = 0)
118 yError(
"%s: not yet implemented\n", func);
120 yError(
"Function not yet implemented\n");
127 {
return NOT_YET_IMPLEMENTED(
"getAxesRaw");}
130 {
return NOT_YET_IMPLEMENTED(
"velocityMoveRaw");}
133 {
return NOT_YET_IMPLEMENTED(
"velocityMoveRaw");}
136 {
return NOT_YET_IMPLEMENTED(
"setRefAccelerationRaw");}
139 {
return NOT_YET_IMPLEMENTED(
"setRefAccelerationsRaw");}
142 {
return NOT_YET_IMPLEMENTED(
"getRefAccelerationRaw");}
145 {
return NOT_YET_IMPLEMENTED(
"getRefAccelerationsRaw");}
148 {
return NOT_YET_IMPLEMENTED(
"stopRaw");}
151 {
return NOT_YET_IMPLEMENTED(
"stopRaw");}
155 bool velocityMoveRaw(
const int n_joint,
const int *joints,
const double *spds)
override
156 {
return NOT_YET_IMPLEMENTED(
"velocityMoveRaw");}
159 {
return NOT_YET_IMPLEMENTED(
"getRefVelocityRaw");}
162 {
return NOT_YET_IMPLEMENTED(
"getRefVelocitiesRaw");}
165 {
return NOT_YET_IMPLEMENTED(
"getRefVelocitiesRaw");}
168 {
return NOT_YET_IMPLEMENTED(
"setRefAccelerationsRaw");}
171 {
return NOT_YET_IMPLEMENTED(
"getRefAccelerationsRaw");}
173 bool stopRaw(
const int n_joint,
const int *joints)
override
174 {
return NOT_YET_IMPLEMENTED(
"stopRaw");}
177 #endif // YARP_DEV_IVELOCITYCONTROLIMPL_H
virtual bool velocityMove(int j, double sp)=0
Start motion at a given speed, single joint.
bool stopRaw(const int n_joint, const int *joints) override
Stop motion for a subset of joints.
bool initialize(int size, const int *amap, const double *enc, const double *zos)
Initialize the internal data and alloc memory.
bool stopRaw() override
Stop motion, multiple joints.
bool stopRaw(int j) override
Stop motion, single joint.
bool setRefAccelerationsRaw(const int n_joint, const int *joints, const double *accs) override
Set reference acceleration for a subset of joints.
yarp::dev::impl::FixedSizeBuffersManager< double > * doubleBuffManager
virtual bool getRefVelocities(double *vels)
Get the last reference speed set by velocityMove for all joints.
virtual bool stop()=0
Stop motion, multiple joints.
bool getRefAccelerationsRaw(const int n_joint, const int *joints, double *accs) override
Get reference acceleration for a subset of joints.
ImplementVelocityControl(yarp::dev::IVelocityControlRaw *y)
Constructor.
virtual bool setRefAcceleration(int j, double acc)=0
Set reference acceleration for a joint.
bool uninitialize()
Clean up internal data and memory.
virtual bool getRefVelocity(const int joint, double *vel)
Get the last reference speed set by velocityMove for single joint.
bool getRefAccelerationRaw(int j, double *acc) override
Get reference acceleration for a joint.
bool setRefAccelerationRaw(int j, double acc) override
Set reference acceleration for a joint.
virtual bool getRefAcceleration(int j, double *acc)=0
Get reference acceleration for a 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 getRefVelocitiesRaw(double *vels) override
Get the last reference speed set by velocityMove for all joints.
IVelocityControlRaw * iVelocity
bool setRefAccelerationsRaw(const double *accs) override
Set reference acceleration on all joints.
bool getRefAccelerationsRaw(double *accs) override
Get reference acceleration of all joints.
virtual bool getRefAccelerations(double *accs)=0
Get reference acceleration of all joints.
bool velocityMoveRaw(int j, double sp) override
Start motion at a given speed, single joint.
virtual bool setRefAccelerations(const double *accs)=0
Set reference acceleration on all joints.
bool velocityMoveRaw(const double *sp) override
Start motion at a given speed, multiple joints.
Interface for control boards implementing velocity control.
yarp::dev::impl::FixedSizeBuffersManager< int > * intBuffManager
virtual bool getAxes(int *axes)=0
Get the number of controlled axes.
The main, catch-all namespace for YARP.
Stub implementation of IPositionControl2Raw interface.
Interface for control boards implementig velocity control in encoder coordinates.
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 getRefVelocityRaw(const int joint, double *vel) override
Get the last reference speed set by velocityMove for single joint.
virtual ~ImplementVelocityControl()
Destructor.
bool getAxes(int *axes) override
Get the number of controlled axes.