6#ifndef YARP_DEV_IPOSITIONCONTROLIMPL_H
7#define YARP_DEV_IPOSITIONCONTROLIMPL_H
13class ImplementPositionControl;
14class StubImplPositionControlRaw;
20class FixedSizeBuffersManager;
47 bool initialize (
int size,
const int *amap,
const double *enc,
const double *zos);
74 bool getAxes(
int *axis)
override;
77 bool positionMove(
const int n_joint,
const int *joints,
const double *refs)
override;
80 bool relativeMove(
const int n_joint,
const int *joints,
const double *deltas)
override;
83 bool checkMotionDone(
const int n_joint,
const int *joints,
bool *flags)
override;
86 bool setRefSpeeds(
const int n_joint,
const int *joints,
const double *spds)
override;
89 bool setRefAccelerations(
const int n_joint,
const int *joints,
const double *accs)
override;
92 bool getRefSpeeds(
const int n_joint,
const int *joints,
double *spds)
override;
97 bool stop(
int j)
override;
98 bool stop(
const int n_joint,
const int *joints)
override;
137 bool positionMoveRaw(
const int n_joint,
const int *joints,
const double *refs)
override
146 bool relativeMoveRaw(
const int n_joint,
const int *joints,
const double *refs)
override
164 bool setRefSpeedsRaw(
const int n_joint,
const int *joints,
const double *spds)
override
200 bool stopRaw(
const int n_joint,
const int *joints)
override
bool NOT_YET_IMPLEMENTED(const char *txt)
Interface for a generic control board device implementing position control in encoder coordinates.
Interface for a generic control board device implementing position control.
Default implementation of the IPositionControl interface.
bool positionMove(int j, double ref) override
Set new reference point for a single axis.
bool getRefSpeeds(const int n_joint, const int *joints, double *spds) override
Get reference speed of all joints.
bool getRefSpeed(int j, double *ref) override
Get reference speed for a joint.
bool getTargetPositions(double *refs) override
Get the last position reference for all axes.
bool setRefAccelerations(const int n_joint, const int *joints, const double *accs) override
Set reference acceleration on all joints.
bool getRefAccelerations(const int n_joint, const int *joints, double *accs) override
Get reference acceleration for a joint.
IPositionControlRaw * iPosition
bool relativeMove(int j, double delta) override
Set relative position.
bool getTargetPosition(const int joint, double *ref) override
Get the last position reference for the specified axis.
bool checkMotionDone(bool *flag) override
Check if the current trajectory is terminated.
bool setRefSpeed(int j, double sp) override
Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.
yarp::dev::impl::FixedSizeBuffersManager< bool > * boolBuffManager
bool setRefAcceleration(int j, double acc) override
Set reference acceleration for a joint.
ImplementPositionControl(yarp::dev::IPositionControlRaw *y)
Constructor.
yarp::dev::impl::FixedSizeBuffersManager< int > * intBuffManager
yarp::dev::impl::FixedSizeBuffersManager< double > * doubleBuffManager
bool getAxes(int *axis) override
Get the number of controlled axes.
virtual ~ImplementPositionControl()
Destructor.
bool stop() override
Stop motion, multiple joints.
bool getRefAcceleration(int j, double *acc) override
Get reference acceleration for a joint.
bool setRefSpeeds(const int n_joint, const int *joints, const double *spds) override
Set reference speed on all joints.
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 IPositionControlRaw interface.
bool positionMoveRaw(int j, double ref) override
Set new reference point for a single axis.
bool checkMotionDoneRaw(const int n_joint, const int *joints, bool *flags) override
Check if the current trajectory is terminated.
bool getTargetPositionsRaw(double *refs) override
Get the last position reference for all axes.
bool getRefSpeedsRaw(double *spds) override
Get reference speed of all joints.
bool setRefSpeedsRaw(const int n_joint, const int *joints, const double *spds) override
Set reference speed on all joints.
bool getRefSpeedsRaw(const int n_joint, const int *joints, double *spds) override
Get reference speed of all joints.
virtual ~StubImplPositionControlRaw()
bool stopRaw() override
Stop motion, multiple joints.
bool getRefAccelerationRaw(int j, double *acc) override
Get reference acceleration for a joint.
bool getRefSpeedRaw(int j, double *ref) override
Get reference speed for a joint.
bool relativeMoveRaw(const double *deltas) override
Set relative position, all joints.
bool relativeMoveRaw(int j, double delta) override
Set relative position.
bool positionMoveRaw(const int n_joint, const int *joints, const double *refs) override
Set new reference point for a subset of joints.
bool getRefAccelerationsRaw(const int n_joint, const int *joints, double *accs) override
Get reference acceleration for a joint.
bool getAxes(int *ax) override
Get the number of controlled axes.
bool stopRaw(const int n_joint, const int *joints) override
Stop motion for subset of joints.
bool setRefAccelerationsRaw(const double *accs) override
Set reference acceleration on all joints.
bool checkMotionDoneRaw(bool *flag) override
Check if the current trajectory is terminated.
bool setRefSpeedsRaw(const double *spds) override
Set reference speed on all joints.
bool positionMoveRaw(const double *refs) override
Set new reference point for all axes.
bool getTargetPositionsRaw(const int n_joint, const int *joints, double *refs) override
Get the last position reference for the specified group of axes.
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 getTargetPositionRaw(const int joint, double *ref) override
Get the last position reference for the specified axis.
bool setRefAccelerationsRaw(const int n_joint, const int *joints, const double *accs) override
Set reference acceleration on all joints.
bool getRefAccelerationsRaw(double *accs) override
Get reference acceleration of all joints.
bool stopRaw(int j) override
Stop motion, single joint.
bool relativeMoveRaw(const int n_joint, const int *joints, const double *refs) override
Set relative position for a subset of joints.
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.
For streams capable of holding different kinds of content, check what they actually have.
The main, catch-all namespace for YARP.