|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
18 #define JOINTIDCHECK if (j >= castToMapper(helper)->axes()){yError("joint id out of bound"); return false;}
23 intBuffManager(nullptr),
24 doubleBuffManager(nullptr),
25 boolBuffManager(nullptr)
111 for(
int idx=0; idx<n_joint; idx++)
150 for(
int idx=0; idx<n_joint; idx++)
184 for(
int idx=0; idx<n_joint; idx++)
213 for(
int idx=0; idx<n_joint; idx++)
249 for(
int idx=0; idx<n_joint; idx++)
290 for(
int idx=0; idx<n_joint; idx++)
298 for(
int idx=0; idx<n_joint; idx++)
331 for(
int idx=0; idx<n_joint; idx++)
339 for(
int idx=0; idx<n_joint; idx++)
373 for(
int idx=0; idx<n_joint; idx++)
425 for(
int idx=0; idx<n_joint; idx++)
432 for(
int idx=0; idx<n_joint; idx++)
446 bool StubImplPositionControlRaw::NOT_YET_IMPLEMENTED(
const char *func)
449 yError(
"%s: not yet implemented\n", func);
451 yError(
"Function not yet implemented\n");
bool getRefAccelerations(const int n_joint, const int *joints, double *accs) override
Get reference acceleration for a joint.
virtual bool positionMoveRaw(int j, double ref)=0
Set new reference point for a single axis.
virtual bool getTargetPositionRaw(const int joint, double *ref)
Get the last position reference for the specified axis.
void posE2A(double enc, int j, double &ang, int &k)
virtual bool setRefAccelerationsRaw(const double *accs)=0
Set reference acceleration on all joints.
bool setRefSpeed(int j, double sp) override
Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.
void velA2E_abs(double ang, int j, double &enc, int &k)
yarp::dev::impl::FixedSizeBuffersManager< bool > * boolBuffManager
IPositionControlRaw * iPosition
T * getData()
Return the data pointer.
Buffer< T > getBuffer()
Get a buffer and fill its information in @buffer.
virtual bool getRefSpeedRaw(int j, double *ref)=0
Get reference speed for a joint.
virtual bool setRefAccelerationRaw(int j, double acc)=0
Set reference acceleration for a joint.
virtual bool checkMotionDoneRaw(int j, bool *flag)=0
Check if the current trajectory is terminated.
bool setRefAccelerations(const int n_joint, const int *joints, const double *accs) override
Set reference acceleration on all joints.
yarp::dev::impl::FixedSizeBuffersManager< int > * intBuffManager
An interface for the device drivers.
bool relativeMove(int j, double delta) override
Set relative position.
void velE2A_abs(double enc, int j, double &ang, int &k)
bool getRefAcceleration(int j, double *acc) override
Get reference acceleration for a joint.
virtual ~ImplementPositionControl()
Destructor.
void posA2E(double ang, int j, double &enc, int &k)
bool initialize(int size, const int *amap, const double *enc, const double *zos)
Initialize the internal data and alloc memory.
Buffer contains info about a buffer of type T and it is used to exchange information with yarp::dev::...
bool stop() override
Stop motion, multiple joints.
virtual bool setRefSpeedRaw(int j, double sp)=0
Set reference speed for a joint, this is the speed used during the interpolation of the trajectory.
void releaseBuffer(Buffer< T > &buffer)
Release a buffer.
bool checkMotionDone(bool *flag) override
Check if the current trajectory is terminated.
virtual bool relativeMoveRaw(int j, double delta)=0
Set relative position.
void velA2E(double ang, int j, double &enc, int &k)
bool setRefAcceleration(int j, double acc) override
Set reference acceleration for a joint.
void accE2A_abs(double enc, int j, double &ang, int &k)
void accA2E_abs(double ang, int j, double &enc, int &k)
bool getRefSpeed(int j, double *ref) override
Get reference speed for a joint.
An interface to the operating system, including Port based communication.
yarp::dev::ControlBoardHelper * castToMapper(void *p)
bool setRefSpeeds(const int n_joint, const int *joints, const double *spds) override
Set reference speed on all joints.
Interface for a generic control board device implementing position control in encoder coordinates.
bool getTargetPosition(const int joint, double *ref) override
Get the last position reference for the specified axis.
virtual bool stopRaw(int j)=0
Stop motion, single joint.
bool getRefSpeeds(const int n_joint, const int *joints, double *spds) override
Get reference speed of all joints.
yarp::dev::impl::FixedSizeBuffersManager< double > * doubleBuffManager
bool getAxes(int *axis) override
Get the number of controlled axes.
ImplementPositionControl(yarp::dev::IPositionControlRaw *y)
Constructor.
virtual bool getRefSpeedsRaw(double *spds)=0
Get reference speed of all joints.
bool getTargetPositions(double *refs) override
Get the last position reference for all axes.
virtual bool setRefSpeedsRaw(const double *spds)=0
Set reference speed on all joints.
virtual bool getTargetPositionsRaw(double *refs)
Get the last position reference for all axes.
virtual bool getRefAccelerationsRaw(double *accs)=0
Get reference acceleration of all joints.
bool positionMove(int j, double ref) override
Set new reference point for a single axis.
bool uninitialize()
Clean up internal data and memory.
virtual bool getRefAccelerationRaw(int j, double *acc)=0
Get reference acceleration for a joint.