77 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,j)
95 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,j)
108 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,val)
118 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,j)
119 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,v)
137 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,v)
152 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,j)
153 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,v)
171 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,v)
184 JOINTIDCHECK(IMPLEMENT_LAYER_COMPONENT,j)
185 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,v)
203 POINTERCHECK(IMPLEMENT_LAYER_COMPONENT,v)
yarp::dev::ControlBoardHelper * castToMapper(void *p)
void accE2A(double enc, int j, double &ang, int &k)
void velE2A(double enc, int j, double &ang, int &k)
void posE2A(double enc, int j, double &ang, int &k)
void posA2E(double ang, int j, double &enc, int &k)
Control board, encoder interface.
virtual yarp::dev::ReturnValue getEncoderSpeedsRaw(double *spds)=0
Read the instantaneous acceleration of an axis.
virtual yarp::dev::ReturnValue getEncodersRaw(double *encs)=0
Read the position of all axes.
virtual yarp::dev::ReturnValue getEncoderRaw(int j, double *v)=0
Read the value of an encoder.
virtual yarp::dev::ReturnValue setEncoderRaw(int j, double val)=0
Set the value of the encoder for a given joint.
virtual yarp::dev::ReturnValue getEncoderAccelerationsRaw(double *accs)=0
Read the instantaneous acceleration of all axes.
virtual yarp::dev::ReturnValue setEncodersRaw(const double *vals)=0
Set the value of all encoders.
virtual yarp::dev::ReturnValue getEncoderSpeedRaw(int j, double *sp)=0
Read the instantaneous speed of an axis.
virtual yarp::dev::ReturnValue getEncoderAccelerationRaw(int j, double *spds)=0
Read the instantaneous acceleration of an axis.
virtual yarp::dev::ReturnValue resetEncoderRaw(int j)=0
Reset encoder, single joint.
virtual yarp::dev::ReturnValue resetEncodersRaw()=0
Reset encoders.
yarp::dev::ReturnValue resetEncoders() override
Reset encoders.
yarp::dev::ReturnValue getAxes(size_t &ax) override
Get the number of controlled axes.
yarp::dev::ReturnValue getEncoders(double *encs) override
Read the position of all axes.
yarp::dev::ReturnValue getEncoderAccelerations(double *accs) override
Read the instantaneous acceleration of all axes.
bool initialize(int size, const int *amap, const double *enc, const double *zos)
Initialize the internal data and alloc memory.
yarp::dev::ReturnValue resetEncoder(int j) override
Reset encoder, single joint.
yarp::dev::ReturnValue getEncoder(int j, double *v) override
Read the value of an encoder.
yarp::dev::ReturnValue getEncoderAcceleration(int j, double *spds) override
Read the instantaneous acceleration of an axis.
yarp::dev::ReturnValue getEncoderSpeed(int j, double *spds) override
Read the instantaneous speed of an axis.
ImplementEncoders(yarp::dev::IEncodersRaw *y)
std::vector< int > m_buffer_ints
yarp::dev::ReturnValue setEncoder(int j, double val) override
Set the value of the encoder for a given joint.
virtual ~ImplementEncoders()
Destructor.
yarp::dev::ReturnValue setEncoders(const double *vals) override
Set the value of all encoders.
std::vector< double > m_buffer_doubles
yarp::dev::ReturnValue getEncoderSpeeds(double *spds) override
Read the instantaneous speed of all axes.
bool uninitialize()
Clean up internal data and memory.
#define YARP_LOG_COMPONENT(name,...)
For streams capable of holding different kinds of content, check what they actually have.