|
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)
95 for(
int idx=0; idx<n_joint; idx++)
144 for(
int idx=0; idx<n_joint; idx++)
151 for(
int idx=0; idx<n_joint; idx++)
178 for(
int idx=0; idx<n_joint; idx++)
218 for(
int idx=0; idx<n_joint; idx++)
225 for(
int idx=0; idx<n_joint; idx++)
261 for(
int idx=0; idx<n_joint; idx++)
void velE2A(double enc, int j, double &ang, int &k)
bool stop() override
Stop motion, multiple joints.
virtual bool getRefVelocitiesRaw(double *vels)
Get the last reference speed set by velocityMove for all joints.
bool initialize(int size, const int *amap, const double *enc, const double *zos)
Initialize the internal data and alloc memory.
virtual bool setRefAccelerationRaw(int j, double acc)=0
Set reference acceleration for a joint.
yarp::dev::impl::FixedSizeBuffersManager< double > * doubleBuffManager
yarp::sig::Vector zeros(int s)
Creates a vector of zeros (defined in Math.h).
bool velocityMove(int j, double sp) override
Start motion at a given speed, single joint.
T * getData()
Return the data pointer.
ImplementVelocityControl(yarp::dev::IVelocityControlRaw *y)
Constructor.
Buffer< T > getBuffer()
Get a buffer and fill its information in @buffer.
bool uninitialize()
Clean up internal data and memory.
bool getRefAcceleration(int j, double *acc) override
Get reference acceleration for a joint.
An interface for the device drivers.
IVelocityControlRaw * iVelocity
Buffer contains info about a buffer of type T and it is used to exchange information with yarp::dev::...
virtual bool getRefVelocityRaw(const int joint, double *vel)
Get the last reference speed set by velocityMove for single joint.
virtual bool stopRaw(int j)=0
Stop motion, single joint.
virtual bool getRefAccelerationsRaw(double *accs)=0
Get reference acceleration of all joints.
bool getRefVelocity(const int joint, double *vel) override
Get the last reference speed set by velocityMove for single joint.
void releaseBuffer(Buffer< T > &buffer)
Release a buffer.
bool getRefVelocities(double *vels) override
Get the last reference speed set by velocityMove for all joints.
void velA2E(double ang, int j, double &enc, int &k)
yarp::dev::impl::FixedSizeBuffersManager< int > * intBuffManager
void accE2A_abs(double enc, int j, double &ang, int &k)
bool getAxes(int *axes) override
Get the number of controlled axes.
void accA2E_abs(double ang, int j, double &enc, int &k)
An interface to the operating system, including Port based communication.
virtual bool getRefAccelerationRaw(int j, double *acc)=0
Get reference acceleration for a joint.
yarp::dev::ControlBoardHelper * castToMapper(void *p)
virtual bool velocityMoveRaw(int j, double sp)=0
Start motion at a given speed, single joint.
bool setRefAcceleration(int j, double acc) override
Set reference acceleration for a joint.
virtual bool setRefAccelerationsRaw(const double *accs)=0
Set reference acceleration on all joints.
Interface for control boards implementig velocity control in encoder coordinates.
bool getRefAccelerations(double *accs) override
Get reference acceleration of all joints.
virtual ~ImplementVelocityControl()
Destructor.
bool setRefAccelerations(const double *accs) override
Set reference acceleration on all joints.