Control board, encoder interface.
More...
#include <yarp/dev/IMotorEncoders.h>
|
virtual | ~IMotorEncodersRaw () |
| Destructor. More...
|
|
virtual bool | getNumberOfMotorEncodersRaw (int *num)=0 |
| Get the number of available motor encoders. More...
|
|
virtual bool | resetMotorEncoderRaw (int m)=0 |
| Reset motor encoder, single motor. More...
|
|
virtual bool | resetMotorEncodersRaw ()=0 |
| Reset motor encoders. More...
|
|
virtual bool | setMotorEncoderCountsPerRevolutionRaw (int m, const double cpr)=0 |
| Sets number of counts per revolution for motor encoder m. More...
|
|
virtual bool | getMotorEncoderCountsPerRevolutionRaw (int m, double *cpr)=0 |
| Gets number of counts per revolution for motor encoder m. More...
|
|
virtual bool | setMotorEncoderRaw (int m, const double val)=0 |
| Set the value of the motor encoder for a given motor. More...
|
|
virtual bool | setMotorEncodersRaw (const double *vals)=0 |
| Set the value of all motor encoders. More...
|
|
virtual bool | getMotorEncoderRaw (int m, double *v)=0 |
| Read the value of a motor encoder. More...
|
|
virtual bool | getMotorEncodersRaw (double *encs)=0 |
| Read the position of all motor encoders. More...
|
|
virtual bool | getMotorEncodersTimedRaw (double *encs, double *stamps)=0 |
| Read the instantaneous position of all motor encoders. More...
|
|
virtual bool | getMotorEncoderTimedRaw (int m, double *encs, double *stamp)=0 |
| Read the instantaneous position of a motor encoder. More...
|
|
virtual bool | getMotorEncoderSpeedRaw (int m, double *sp)=0 |
| Read the istantaneous speed of a motor encoder. More...
|
|
virtual bool | getMotorEncoderSpeedsRaw (double *spds)=0 |
| Read the instantaneous speed of all motor encoders. More...
|
|
virtual bool | getMotorEncoderAccelerationRaw (int m, double *spds)=0 |
| Read the instantaneous acceleration of a motor encoder. More...
|
|
virtual bool | getMotorEncoderAccelerationsRaw (double *accs)=0 |
| Read the instantaneous acceleration of all motor encoders. More...
|
|
Control board, encoder interface.
Definition at line 27 of file IMotorEncoders.h.
◆ ~IMotorEncodersRaw()
virtual yarp::dev::IMotorEncodersRaw::~IMotorEncodersRaw |
( |
| ) |
|
|
inlinevirtual |
◆ getMotorEncoderAccelerationRaw()
virtual bool yarp::dev::IMotorEncodersRaw::getMotorEncoderAccelerationRaw |
( |
int |
m, |
|
|
double * |
spds |
|
) |
| |
|
pure virtual |
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.
Implemented in FakeMotionControl.
◆ getMotorEncoderAccelerationsRaw()
virtual bool yarp::dev::IMotorEncodersRaw::getMotorEncoderAccelerationsRaw |
( |
double * |
accs | ) |
|
|
pure virtual |
Read the instantaneous acceleration of all motor encoders.
- Parameters
-
accs | pointer to the array that will contain the output |
- Returns
- true if successful, false otherwise.
Implemented in FakeMotionControl.
◆ getMotorEncoderCountsPerRevolutionRaw()
virtual bool yarp::dev::IMotorEncodersRaw::getMotorEncoderCountsPerRevolutionRaw |
( |
int |
m, |
|
|
double * |
cpr |
|
) |
| |
|
pure virtual |
Gets number of counts per revolution for motor encoder m.
- Parameters
-
m | motor number |
cpr | vals pointer to the new value |
- Returns
- true/false
Implemented in FakeMotionControl.
◆ getMotorEncoderRaw()
virtual bool yarp::dev::IMotorEncodersRaw::getMotorEncoderRaw |
( |
int |
m, |
|
|
double * |
v |
|
) |
| |
|
pure virtual |
Read the value of a motor encoder.
- Parameters
-
m | motor encoder number |
v | pointer to storage for the return value |
- Returns
- true/false
Implemented in FakeMotionControl.
◆ getMotorEncoderSpeedRaw()
virtual bool yarp::dev::IMotorEncodersRaw::getMotorEncoderSpeedRaw |
( |
int |
m, |
|
|
double * |
sp |
|
) |
| |
|
pure virtual |
Read the istantaneous speed of a motor encoder.
- Parameters
-
m | motor number |
sp | pointer to storage for the output |
- Returns
- true if successful, false otherwise.
Implemented in FakeMotionControl.
◆ getMotorEncoderSpeedsRaw()
virtual bool yarp::dev::IMotorEncodersRaw::getMotorEncoderSpeedsRaw |
( |
double * |
spds | ) |
|
|
pure virtual |
Read the instantaneous speed of all motor encoders.
- Parameters
-
spds | pointer to storage for the output values |
- Returns
- true if successful, false otherwise.
Implemented in FakeMotionControl.
◆ getMotorEncodersRaw()
virtual bool yarp::dev::IMotorEncodersRaw::getMotorEncodersRaw |
( |
double * |
encs | ) |
|
|
pure virtual |
Read the position of all motor encoders.
- Parameters
-
encs | pointer to the array that will contain the output |
- Returns
- true/false
Implemented in FakeMotionControl.
◆ getMotorEncodersTimedRaw()
virtual bool yarp::dev::IMotorEncodersRaw::getMotorEncodersTimedRaw |
( |
double * |
encs, |
|
|
double * |
stamps |
|
) |
| |
|
pure virtual |
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.
Implemented in FakeMotionControl.
◆ getMotorEncoderTimedRaw()
virtual bool yarp::dev::IMotorEncodersRaw::getMotorEncoderTimedRaw |
( |
int |
m, |
|
|
double * |
encs, |
|
|
double * |
stamp |
|
) |
| |
|
pure virtual |
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.
Implemented in FakeMotionControl.
◆ getNumberOfMotorEncodersRaw()
virtual bool yarp::dev::IMotorEncodersRaw::getNumberOfMotorEncodersRaw |
( |
int * |
num | ) |
|
|
pure virtual |
Get the number of available motor encoders.
- Parameters
-
m | pointer to a value representing the number of available motor encoders. |
- Returns
- true/false
Implemented in FakeMotionControl.
◆ resetMotorEncoderRaw()
virtual bool yarp::dev::IMotorEncodersRaw::resetMotorEncoderRaw |
( |
int |
m | ) |
|
|
pure virtual |
Reset motor encoder, single motor.
Set the encoder value to zero.
- Parameters
-
- Returns
- true/false
Implemented in FakeMotionControl.
◆ resetMotorEncodersRaw()
virtual bool yarp::dev::IMotorEncodersRaw::resetMotorEncodersRaw |
( |
| ) |
|
|
pure virtual |
Reset motor encoders.
Set the motor encoders value to zero.
- Returns
- true/false
Implemented in FakeMotionControl.
◆ setMotorEncoderCountsPerRevolutionRaw()
virtual bool yarp::dev::IMotorEncodersRaw::setMotorEncoderCountsPerRevolutionRaw |
( |
int |
m, |
|
|
const double |
cpr |
|
) |
| |
|
pure virtual |
Sets number of counts per revolution for motor encoder m.
- Parameters
-
m | motor number |
cpr | new value |
- Returns
- true/false
Implemented in FakeMotionControl.
◆ setMotorEncoderRaw()
virtual bool yarp::dev::IMotorEncodersRaw::setMotorEncoderRaw |
( |
int |
m, |
|
|
const double |
val |
|
) |
| |
|
pure virtual |
Set the value of the motor encoder for a given motor.
- Parameters
-
m | motor number |
val | new value |
- Returns
- true/false
Implemented in FakeMotionControl.
◆ setMotorEncodersRaw()
virtual bool yarp::dev::IMotorEncodersRaw::setMotorEncodersRaw |
( |
const double * |
vals | ) |
|
|
pure virtual |
Set the value of all motor encoders.
- Parameters
-
vals | pointer to the new values |
- Returns
- true/false
Implemented in FakeMotionControl.
The documentation for this class was generated from the following file: