#include <yarp/dev/ImplementMotorEncoders.h>
|
| | ImplementMotorEncoders (yarp::dev::IMotorEncodersRaw *y) |
| |
| virtual | ~ImplementMotorEncoders () |
| |
| yarp::dev::ReturnValue | getNumberOfMotorEncoders (int *num) override |
| | Get the number of available motor encoders.
|
| |
| yarp::dev::ReturnValue | resetMotorEncoder (int m) override |
| | Reset motor encoder, single motor.
|
| |
| yarp::dev::ReturnValue | resetMotorEncoders () override |
| | Reset motor encoders.
|
| |
| yarp::dev::ReturnValue | setMotorEncoder (int m, const double val) override |
| | Set the value of the motor encoder for a given motor.
|
| |
| yarp::dev::ReturnValue | setMotorEncoders (const double *vals) override |
| | Set the value of all motor encoders.
|
| |
| yarp::dev::ReturnValue | setMotorEncoderCountsPerRevolution (int m, const double cpr) override |
| | Sets number of counts per revolution for motor encoder m.
|
| |
| yarp::dev::ReturnValue | getMotorEncoderCountsPerRevolution (int m, double *cpr) override |
| | Gets number of counts per revolution for motor encoder m.
|
| |
| yarp::dev::ReturnValue | getMotorEncoder (int m, double *v) override |
| | Read the value of a motor encoder.
|
| |
| yarp::dev::ReturnValue | getMotorEncodersTimed (double *encs, double *time) override |
| | Read the instantaneous position of all motor encoders.
|
| |
| yarp::dev::ReturnValue | getMotorEncoderTimed (int m, double *v, double *t) override |
| | Read the instantaneous position of a motor encoder.
|
| |
| yarp::dev::ReturnValue | getMotorEncoders (double *encs) override |
| | Read the position of all motor encoders.
|
| |
| yarp::dev::ReturnValue | getMotorEncoderSpeed (int m, double *spds) override |
| | Read the instantaneous speed of a motor encoder.
|
| |
| yarp::dev::ReturnValue | getMotorEncoderSpeeds (double *spds) override |
| | Read the instantaneous speed of all motor encoders.
|
| |
| yarp::dev::ReturnValue | getMotorEncoderAcceleration (int m, double *spds) override |
| | Read the instantaneous acceleration of a motor encoder.
|
| |
| yarp::dev::ReturnValue | getMotorEncoderAccelerations (double *accs) override |
| | Read the instantaneous acceleration of all motor encoders.
|
| |
| virtual | ~IMotorEncoders () |
| | Destructor.
|
| |
Definition at line 22 of file ImplementMotorEncoders.h.
◆ ImplementMotorEncoders()
◆ ~ImplementMotorEncoders()
| ImplementMotorEncoders::~ImplementMotorEncoders |
( |
| ) |
|
|
virtual |
◆ getMotorEncoder()
◆ getMotorEncoderAcceleration()
Read the instantaneous acceleration of a motor encoder.
- Parameters
-
| m | motor number |
| acc | pointer to the array that will contain the output |
- Returns
- true if successful, false otherwise.
Implements yarp::dev::IMotorEncoders.
Definition at line 199 of file ImplementMotorEncoders.cpp.
◆ getMotorEncoderAccelerations()
◆ getMotorEncoderCountsPerRevolution()
◆ getMotorEncoders()
◆ getMotorEncoderSpeed()
◆ getMotorEncoderSpeeds()
◆ getMotorEncodersTimed()
Read the instantaneous position of all motor encoders.
- Parameters
-
| encs | pointer to the array that will contain the output |
| time | pointer to the array that will contain individual timestamps |
- Returns
- true if successful, false otherwise.
Implements yarp::dev::IMotorEncoders.
Definition at line 250 of file ImplementMotorEncoders.cpp.
◆ getMotorEncoderTimed()
Read the instantaneous position of a motor encoder.
- Parameters
-
| m | motor index |
| encs | encoder value (pointer to) |
| time | corresponding timestamp (pointer to) |
- Returns
- true if successful, false otherwise.
Implements yarp::dev::IMotorEncoders.
Definition at line 229 of file ImplementMotorEncoders.cpp.
◆ getNumberOfMotorEncoders()
| ReturnValue ImplementMotorEncoders::getNumberOfMotorEncoders |
( |
int * |
num | ) |
|
|
overridevirtual |
◆ initialize()
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 31 of file ImplementMotorEncoders.cpp.
◆ resetMotorEncoder()
◆ resetMotorEncoders()
| ReturnValue ImplementMotorEncoders::resetMotorEncoders |
( |
| ) |
|
|
overridevirtual |
◆ setMotorEncoder()
◆ setMotorEncoderCountsPerRevolution()
◆ setMotorEncoders()
◆ uninitialize()
| bool ImplementMotorEncoders::uninitialize |
( |
| ) |
|
|
protected |
Clean up internal data and memory.
- Returns
- true if uninitialization is executed, false otherwise.
Definition at line 51 of file ImplementMotorEncoders.cpp.
◆ m_buffer_doubles
| std::vector<double> yarp::dev::ImplementMotorEncoders::m_buffer_doubles |
|
protected |
◆ m_buffer_doubles2
| std::vector<double> yarp::dev::ImplementMotorEncoders::m_buffer_doubles2 |
|
protected |
◆ m_buffer_ints
| std::vector<int> yarp::dev::ImplementMotorEncoders::m_buffer_ints |
|
protected |
◆ m_helper
| void* yarp::dev::ImplementMotorEncoders::m_helper =nullptr |
|
protected |
◆ m_imp_mutex
| std::mutex yarp::dev::ImplementMotorEncoders::m_imp_mutex |
|
protected |
◆ m_iraw
The documentation for this class was generated from the following files: