|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_DEV_IPOSITIONCONTROLIMPL_H
10 #define YARP_DEV_IPOSITIONCONTROLIMPL_H
17 class ImplementPositionControl;
18 class StubImplPositionControlRaw;
27 class FixedSizeBuffersManager;
56 bool initialize (
int size,
const int *amap,
const double *enc,
const double *zos);
83 bool getAxes(
int *axis)
override;
86 bool positionMove(
const int n_joint,
const int *joints,
const double *refs)
override;
89 bool relativeMove(
const int n_joint,
const int *joints,
const double *deltas)
override;
92 bool checkMotionDone(
const int n_joint,
const int *joints,
bool *flags)
override;
95 bool setRefSpeeds(
const int n_joint,
const int *joints,
const double *spds)
override;
98 bool setRefAccelerations(
const int n_joint,
const int *joints,
const double *accs)
override;
101 bool getRefSpeeds(
const int n_joint,
const int *joints,
double *spds)
override;
106 bool stop(
int j)
override;
107 bool stop(
const int n_joint,
const int *joints)
override;
108 bool stop()
override;
146 bool positionMoveRaw(
const int n_joint,
const int *joints,
const double *refs)
override
155 bool relativeMoveRaw(
const int n_joint,
const int *joints,
const double *refs)
override
173 bool setRefSpeedsRaw(
const int n_joint,
const int *joints,
const double *spds)
override
209 bool stopRaw(
const int n_joint,
const int *joints)
override
225 #endif // YARP_DEV_IPOSITIONCONTROLIMPL_H
bool getTargetPositionsRaw(const int n_joint, const int *joints, double *refs) override
Get the last position reference for the specified group of axes.
virtual bool setRefAccelerations(const double *accs)=0
Set reference acceleration on all joints.
Stub implementation of IPositionControlRaw interface.
bool getRefAccelerationsRaw(double *accs) override
Get reference acceleration of all joints.
bool getRefAccelerationRaw(int j, double *acc) override
Get reference acceleration for a joint.
virtual bool positionMove(int j, double ref)=0
Set new reference point for a single axis.
Default implementation of the IPositionControl interface.
bool positionMoveRaw(const double *refs) override
Set new reference point for all axes.
yarp::dev::impl::FixedSizeBuffersManager< bool > * boolBuffManager
IPositionControlRaw * iPosition
bool getTargetPositionRaw(const int joint, double *ref) override
Get the last position reference for the specified axis.
bool positionMoveRaw(const int n_joint, const int *joints, const double *refs) override
Set new reference point for a subset of joints.
bool positionMoveRaw(int j, double ref) override
Set new reference point for a single axis.
bool getRefAccelerationsRaw(const int n_joint, const int *joints, double *accs) override
Get reference acceleration for a joint.
bool getRefSpeedRaw(int j, double *ref) override
Get reference speed for a joint.
virtual bool getRefAcceleration(int j, double *acc)=0
Get reference acceleration for a joint.
bool getTargetPositionsRaw(double *refs) override
Get the last position reference for all axes.
yarp::dev::impl::FixedSizeBuffersManager< int > * intBuffManager
virtual bool setRefSpeed(int j, double sp)=0
Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.
virtual bool getRefSpeeds(double *spds)=0
Get reference speed of all joints.
bool NOT_YET_IMPLEMENTED(const char *txt)
virtual bool setRefAcceleration(int j, double acc)=0
Set reference acceleration for a joint.
bool stopRaw() override
Stop motion, multiple joints.
bool relativeMoveRaw(const int n_joint, const int *joints, const double *refs) override
Set relative position for a subset of joints.
virtual ~ImplementPositionControl()
Destructor.
bool checkMotionDoneRaw(const int n_joint, const int *joints, bool *flags) override
Check if the current trajectory is terminated.
bool setRefSpeedRaw(int j, double sp) override
Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.
bool setRefSpeedsRaw(const double *spds) override
Set reference speed on all joints.
virtual bool getRefSpeed(int j, double *ref)=0
Get reference speed for a joint.
bool initialize(int size, const int *amap, const double *enc, const double *zos)
Initialize the internal data and alloc memory.
virtual bool checkMotionDone(int j, bool *flag)=0
Check if the current trajectory is terminated.
bool checkMotionDoneRaw(int j, bool *flag) override
Check if the current trajectory is terminated.
bool setRefAccelerationRaw(int j, double acc) override
Set reference acceleration for a joint.
bool stopRaw(int j) override
Stop motion, single joint.
bool relativeMoveRaw(int j, double delta) override
Set relative position.
virtual bool relativeMove(int j, double delta)=0
Set relative position.
bool setRefSpeedsRaw(const int n_joint, const int *joints, const double *spds) override
Set reference speed on all joints.
virtual bool getAxes(int *ax)=0
Get the number of controlled axes.
virtual bool stop()=0
Stop motion, multiple joints.
virtual ~StubImplPositionControlRaw()
bool getRefSpeedsRaw(const int n_joint, const int *joints, double *spds) override
Get reference speed of all joints.
virtual bool getTargetPositions(double *refs)
Get the last position reference for all axes.
bool checkMotionDoneRaw(bool *flag) override
Check if the current trajectory is terminated.
bool stopRaw(const int n_joint, const int *joints) override
Stop motion for subset of joints.
bool setRefAccelerationsRaw(const int n_joint, const int *joints, const double *accs) override
Set reference acceleration on all joints.
bool setRefAccelerationsRaw(const double *accs) override
Set reference acceleration on all joints.
Interface for a generic control board device implementing position control in encoder coordinates.
The main, catch-all namespace for YARP.
virtual bool setRefSpeeds(const double *spds)=0
Set reference speed on all joints.
bool getRefSpeedsRaw(double *spds) override
Get reference speed of all joints.
yarp::dev::impl::FixedSizeBuffersManager< double > * doubleBuffManager
ImplementPositionControl(yarp::dev::IPositionControlRaw *y)
Constructor.
bool getAxes(int *ax) override
Get the number of controlled axes.
bool relativeMoveRaw(const double *deltas) override
Set relative position, all joints.
virtual bool getTargetPosition(const int joint, double *ref)
Get the last position reference for the specified axis.
virtual bool getRefAccelerations(double *accs)=0
Get reference acceleration of all joints.
Interface for a generic control board device implementing position control.
bool uninitialize()
Clean up internal data and memory.