#include <yarp/dev/ImplementMotorEncoders.h>
Inheritance diagram for yarp::dev::ImplementMotorEncoders:Public Member Functions | |
| ImplementMotorEncoders (yarp::dev::IMotorEncodersRaw *y) | |
| virtual | ~ImplementMotorEncoders () |
| bool | getNumberOfMotorEncoders (int *num) override |
| Get the number of available motor encoders. | |
| bool | resetMotorEncoder (int m) override |
| Reset motor encoder, single motor. | |
| bool | resetMotorEncoders () override |
| Reset motor encoders. | |
| bool | setMotorEncoder (int m, const double val) override |
| Set the value of the motor encoder for a given motor. | |
| bool | setMotorEncoders (const double *vals) override |
| Set the value of all motor encoders. | |
| bool | setMotorEncoderCountsPerRevolution (int m, const double cpr) override |
| Sets number of counts per revolution for motor encoder m. | |
| bool | getMotorEncoderCountsPerRevolution (int m, double *cpr) override |
| Gets number of counts per revolution for motor encoder m. | |
| bool | getMotorEncoder (int m, double *v) override |
| Read the value of a motor encoder. | |
| bool | getMotorEncodersTimed (double *encs, double *time) override |
| Read the instantaneous position of all motor encoders. | |
| bool | getMotorEncoderTimed (int m, double *v, double *t) override |
| Read the instantaneous position of a motor encoder. | |
| bool | getMotorEncoders (double *encs) override |
| Read the position of all motor encoders. | |
| bool | getMotorEncoderSpeed (int m, double *spds) override |
| Read the istantaneous speed of a motor encoder. | |
| bool | getMotorEncoderSpeeds (double *spds) override |
| Read the instantaneous speed of all motor encoders. | |
| bool | getMotorEncoderAcceleration (int m, double *spds) override |
| Read the instantaneous acceleration of a motor encoder. | |
| bool | getMotorEncoderAccelerations (double *accs) override |
| Read the instantaneous acceleration of all motor encoders. | |
Public Member Functions inherited from yarp::dev::IMotorEncoders | |
| virtual | ~IMotorEncoders () |
| Destructor. | |
Protected Member Functions | |
| bool | initialize (int size, const int *amap, const double *enc, const double *zos) |
| Initialize the internal data and alloc memory. | |
| bool | uninitialize () |
| Clean up internal data and memory. | |
Protected Attributes | |
| IMotorEncodersRaw * | iMotorEncoders |
| void * | helper |
| yarp::dev::impl::FixedSizeBuffersManager< double > * | buffManager |
Definition at line 22 of file ImplementMotorEncoders.h.
| ImplementMotorEncoders::ImplementMotorEncoders | ( | yarp::dev::IMotorEncodersRaw * | y | ) |
Definition at line 18 of file ImplementMotorEncoders.cpp.
|
virtual |
Definition at line 24 of file ImplementMotorEncoders.cpp.
Read the value of a motor encoder.
| m | motor encoder number |
| v | pointer to storage for the return value |
Implements yarp::dev::IMotorEncoders.
Definition at line 126 of file ImplementMotorEncoders.cpp.
Read the instantaneous acceleration of a motor encoder.
| m | motor number |
| acc | pointer to the array that will contain the output |
Implements yarp::dev::IMotorEncoders.
Definition at line 176 of file ImplementMotorEncoders.cpp.
Read the instantaneous acceleration of all motor encoders.
| accs | pointer to the array that will contain the output |
Implements yarp::dev::IMotorEncoders.
Definition at line 192 of file ImplementMotorEncoders.cpp.
|
overridevirtual |
Gets number of counts per revolution for motor encoder m.
| m | motor number |
| cpr | vals pointer to the new value |
Implements yarp::dev::IMotorEncoders.
Definition at line 95 of file ImplementMotorEncoders.cpp.
Read the position of all motor encoders.
| encs | pointer to the array that will contain the output |
Implements yarp::dev::IMotorEncoders.
Definition at line 142 of file ImplementMotorEncoders.cpp.
Read the istantaneous speed of a motor encoder.
| m | motor number |
| sp | pointer to storage for the output |
Implements yarp::dev::IMotorEncoders.
Definition at line 151 of file ImplementMotorEncoders.cpp.
Read the instantaneous speed of all motor encoders.
| spds | pointer to storage for the output values |
Implements yarp::dev::IMotorEncoders.
Definition at line 167 of file ImplementMotorEncoders.cpp.
Read the instantaneous position of all motor encoders.
| encs | pointer to the array that will contain the output |
| time | pointer to the array that will contain individual timestamps |
Implements yarp::dev::IMotorEncoders.
Definition at line 218 of file ImplementMotorEncoders.cpp.
|
overridevirtual |
Read the instantaneous position of a motor encoder.
| m | motor index |
| encs | encoder value (pointer to) |
| time | corresponding timestamp (pointer to) |
Implements yarp::dev::IMotorEncoders.
Definition at line 201 of file ImplementMotorEncoders.cpp.
Get the number of available motor encoders.
| m | pointer to a value representing the number of available motor encoders. |
Implements yarp::dev::IMotorEncoders.
Definition at line 64 of file ImplementMotorEncoders.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 29 of file ImplementMotorEncoders.cpp.
Reset motor encoder, single motor.
Set the encoder value to zero.
| m | motor number |
Implements yarp::dev::IMotorEncoders.
Definition at line 70 of file ImplementMotorEncoders.cpp.
|
overridevirtual |
Reset motor encoders.
Set the motor encoders value to zero.
Implements yarp::dev::IMotorEncoders.
Definition at line 79 of file ImplementMotorEncoders.cpp.
Set the value of the motor encoder for a given motor.
| m | motor number |
| val | new value |
Implements yarp::dev::IMotorEncoders.
Definition at line 84 of file ImplementMotorEncoders.cpp.
|
overridevirtual |
Sets number of counts per revolution for motor encoder m.
| m | motor number |
| cpr | new value |
Implements yarp::dev::IMotorEncoders.
Definition at line 106 of file ImplementMotorEncoders.cpp.
Set the value of all motor encoders.
| vals | pointer to the new values |
Implements yarp::dev::IMotorEncoders.
Definition at line 116 of file ImplementMotorEncoders.cpp.
|
protected |
Clean up internal data and memory.
Definition at line 47 of file ImplementMotorEncoders.cpp.
|
protected |
Definition at line 27 of file ImplementMotorEncoders.h.
|
protected |
Definition at line 26 of file ImplementMotorEncoders.h.
|
protected |
Definition at line 25 of file ImplementMotorEncoders.h.