#include <yarp/dev/ImplementEncoders.h>
|
| 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...
|
| |
Definition at line 23 of file ImplementEncoders.h.
◆ ImplementEncoders()
◆ ~ImplementEncoders()
| ImplementEncoders::~ImplementEncoders |
( |
| ) |
|
|
virtual |
◆ getAxes()
| bool ImplementEncoders::getAxes |
( |
int * |
ax | ) |
|
|
overridevirtual |
Get the number of controlled axes.
This command asks the number of controlled axes for the current physical interface.
- Returns
- the number of controlled axes.
Implements yarp::dev::IEncoders.
Definition at line 64 of file ImplementEncoders.cpp.
◆ getEncoder()
| bool ImplementEncoders::getEncoder |
( |
int |
j, |
|
|
double * |
v |
|
) |
| |
|
overridevirtual |
Read the value of an encoder.
- Parameters
-
| j | encoder number |
| v | pointer to storage for the return value |
- Returns
- true/false, upon success/failure (you knew it, uh?)
Implements yarp::dev::IEncoders.
Definition at line 101 of file ImplementEncoders.cpp.
◆ getEncoderAcceleration()
| bool ImplementEncoders::getEncoderAcceleration |
( |
int |
j, |
|
|
double * |
spds |
|
) |
| |
|
overridevirtual |
◆ getEncoderAccelerations()
| bool ImplementEncoders::getEncoderAccelerations |
( |
double * |
accs | ) |
|
|
overridevirtual |
Read the instantaneous acceleration of all axes.
- Parameters
-
| accs | pointer to the array that will contain the output |
- Returns
- true if all goes well, false if anything bad happens.
Implements yarp::dev::IEncoders.
Definition at line 168 of file ImplementEncoders.cpp.
◆ getEncoders()
| bool ImplementEncoders::getEncoders |
( |
double * |
encs | ) |
|
|
overridevirtual |
◆ getEncoderSpeed()
| bool ImplementEncoders::getEncoderSpeed |
( |
int |
j, |
|
|
double * |
spds |
|
) |
| |
|
overridevirtual |
Read the instantaneous speed of an axis.
- Parameters
-
| j | axis number |
| spds | pointer to storage for the output |
- Returns
- true if successful, false ... otherwise.
Implements yarp::dev::IEncoders.
Definition at line 128 of file ImplementEncoders.cpp.
◆ getEncoderSpeeds()
| bool ImplementEncoders::getEncoderSpeeds |
( |
double * |
spds | ) |
|
|
overridevirtual |
Read the instantaneous speed of all axes.
- Parameters
-
| spds | pointer to storage for the output values |
- Returns
- guess what? (true/false on success or failure).
Implements yarp::dev::IEncoders.
Definition at line 143 of file ImplementEncoders.cpp.
◆ initialize()
| bool ImplementEncoders::initialize |
( |
int |
size, |
|
|
const int * |
amap, |
|
|
const double * |
enc, |
|
|
const double * |
zos |
|
) |
| |
|
protected |
Initialize the internal data and alloc memory.
- Parameters
-
| 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. |
- Returns
- true if initialized succeeded, false if it wasn't executed, or assert.
Definition at line 35 of file ImplementEncoders.cpp.
◆ resetEncoder()
| bool ImplementEncoders::resetEncoder |
( |
int |
j | ) |
|
|
overridevirtual |
◆ resetEncoders()
| bool ImplementEncoders::resetEncoders |
( |
| ) |
|
|
overridevirtual |
◆ setEncoder()
| bool ImplementEncoders::setEncoder |
( |
int |
j, |
|
|
double |
val |
|
) |
| |
|
overridevirtual |
◆ setEncoders()
| bool ImplementEncoders::setEncoders |
( |
const double * |
vals | ) |
|
|
overridevirtual |
◆ uninitialize()
| bool ImplementEncoders::uninitialize |
( |
| ) |
|
|
protected |
Clean up internal data and memory.
- Returns
- true if uninitialization is executed, false otherwise.
Definition at line 51 of file ImplementEncoders.cpp.
◆ helper
| void* yarp::dev::ImplementEncoders::helper |
|
protected |
◆ iEncoders
◆ temp
| double* yarp::dev::ImplementEncoders::temp |
|
protected |
The documentation for this class was generated from the following files: