#include <yarp/dev/ImplementEncodersTimed.h>
Public Member Functions | |
ImplementEncodersTimed (yarp::dev::IEncodersTimedRaw *y) | |
virtual | ~ImplementEncodersTimed () |
bool | getAxes (int *ax) override |
Get the number of controlled axes. More... | |
bool | resetEncoder (int j) override |
Reset encoder, single joint. More... | |
bool | resetEncoders () override |
Reset encoders. More... | |
bool | setEncoder (int j, double val) override |
Set the value of the encoder for a given joint. More... | |
bool | setEncoders (const double *vals) override |
Set the value of all encoders. More... | |
bool | getEncoder (int j, double *v) override |
Read the value of an encoder. More... | |
bool | getEncodersTimed (double *encs, double *time) override |
Read the instantaneous acceleration of all axes. More... | |
bool | getEncoderTimed (int j, double *v, double *t) override |
Read the instantaneous acceleration of all axes. More... | |
bool | getEncoders (double *encs) override |
Read the position of all axes. More... | |
bool | getEncoderSpeed (int j, double *spds) override |
Read the istantaneous speed of an axis. More... | |
bool | getEncoderSpeeds (double *spds) override |
Read the instantaneous speed of all axes. More... | |
bool | getEncoderAcceleration (int j, double *spds) override |
Read the instantaneous acceleration of an axis. More... | |
bool | getEncoderAccelerations (double *accs) override |
Read the instantaneous acceleration of all axes. More... | |
Public Member Functions inherited from yarp::dev::IEncodersTimed | |
virtual | ~IEncodersTimed () |
Destructor. More... | |
Public Member Functions inherited from yarp::dev::IEncoders | |
virtual | ~IEncoders () |
Destructor. More... | |
Protected Member Functions | |
bool | initialize (int size, const int *amap, const double *enc, const double *zos) |
Initialize the internal data and alloc memory. More... | |
bool | uninitialize () |
Clean up internal data and memory. More... | |
Protected Attributes | |
IEncodersTimedRaw * | iEncoders |
void * | helper |
yarp::dev::impl::FixedSizeBuffersManager< double > * | buffManager |
Definition at line 31 of file ImplementEncodersTimed.h.
ImplementEncodersTimed::ImplementEncodersTimed | ( | yarp::dev::IEncodersTimedRaw * | y | ) |
Definition at line 20 of file ImplementEncodersTimed.cpp.
|
virtual |
Definition at line 26 of file ImplementEncodersTimed.cpp.
|
overridevirtual |
Get the number of controlled axes.
This command asks the number of controlled axes for the current physical interface.
Implements yarp::dev::IEncoders.
Reimplemented in FakeMotionControl.
Definition at line 64 of file ImplementEncodersTimed.cpp.
|
overridevirtual |
Read the value of an encoder.
j | encoder number |
v | pointer to storage for the return value |
Implements yarp::dev::IEncoders.
Definition at line 104 of file ImplementEncodersTimed.cpp.
|
overridevirtual |
Read the instantaneous acceleration of an axis.
j | axis number |
spds | pointer to the array that will contain the output |
Implements yarp::dev::IEncoders.
Definition at line 154 of file ImplementEncodersTimed.cpp.
|
overridevirtual |
Read the instantaneous acceleration of all axes.
accs | pointer to the array that will contain the output |
Implements yarp::dev::IEncoders.
Definition at line 170 of file ImplementEncodersTimed.cpp.
|
overridevirtual |
Read the position of all axes.
encs | pointer to the array that will contain the output |
Implements yarp::dev::IEncoders.
Definition at line 120 of file ImplementEncodersTimed.cpp.
|
overridevirtual |
Read the istantaneous speed of an axis.
j | axis number |
sp | pointer to storage for the output |
Implements yarp::dev::IEncoders.
Definition at line 129 of file ImplementEncodersTimed.cpp.
|
overridevirtual |
Read the instantaneous speed of all axes.
spds | pointer to storage for the output values |
Implements yarp::dev::IEncoders.
Definition at line 145 of file ImplementEncodersTimed.cpp.
|
overridevirtual |
Read the instantaneous acceleration of all axes.
encs | pointer to the array that will contain the output |
time | pointer to the array that will contain individual timestamps |
Implements yarp::dev::IEncodersTimed.
Definition at line 196 of file ImplementEncodersTimed.cpp.
|
overridevirtual |
Read the instantaneous acceleration of all axes.
j | axis index |
encs | encoder value (pointer to) |
time | corresponding timestamp (pointer to) |
Implements yarp::dev::IEncodersTimed.
Definition at line 179 of file ImplementEncodersTimed.cpp.
|
protected |
Initialize the internal data and alloc memory.
size | is the number of controlled axes the driver deals with. |
amap | is a lookup table mapping axes onto physical drivers. |
enc | is an array containing the encoder to angles conversion factors. |
zos | is an array containing the zeros of the encoders. |
Definition at line 31 of file ImplementEncodersTimed.cpp.
|
overridevirtual |
Reset encoder, single joint.
Set the encoder value to zero
j | encoder number |
Implements yarp::dev::IEncoders.
Definition at line 70 of file ImplementEncodersTimed.cpp.
|
overridevirtual |
Reset encoders.
Set the encoders value to zero
Implements yarp::dev::IEncoders.
Definition at line 79 of file ImplementEncodersTimed.cpp.
|
overridevirtual |
Set the value of the encoder for a given joint.
j | encoder number |
val | new value |
Implements yarp::dev::IEncoders.
Definition at line 84 of file ImplementEncodersTimed.cpp.
|
overridevirtual |
Set the value of all encoders.
vals | pointer to the new values |
Implements yarp::dev::IEncoders.
Definition at line 95 of file ImplementEncodersTimed.cpp.
|
protected |
Clean up internal data and memory.
Definition at line 48 of file ImplementEncodersTimed.cpp.
|
protected |
Definition at line 36 of file ImplementEncodersTimed.h.
|
protected |
Definition at line 35 of file ImplementEncodersTimed.h.
|
protected |
Definition at line 34 of file ImplementEncodersTimed.h.