Stub implementation of IEncodersRaw interface. More...
#include <yarp/dev/ImplementControlBoardInterfaces.h>
Public Member Functions | |
virtual | ~StubImplEncodersRaw () |
bool | getAxes (int *ax) override |
Get the number of controlled axes. | |
bool | resetEncoderRaw (int j) override |
Reset encoder, single joint. | |
bool | resetEncodersRaw () override |
Reset encoders. | |
bool | setEncoderRaw (int j, double val) override |
Set the value of the encoder for a given joint. | |
bool | setEncodersRaw (const double *vals) override |
Set the value of all encoders. | |
bool | getEncoderRaw (int j, double *v) override |
Read the value of an encoder. | |
bool | getEncodersRaw (double *encs) override |
Read the position of all axes. | |
bool | getEncoderSpeedRaw (int j, double *sp) override |
Read the instantaneous speed of an axis. | |
bool | getEncoderSpeedsRaw (double *spds) override |
Read the instantaneous acceleration of an axis. | |
bool | getEncoderAccelerationRaw (int j, double *spds) override |
Read the instantaneous acceleration of an axis. | |
bool | getEncoderAccelerationsRaw (double *accs) override |
Read the instantaneous acceleration of all axes. | |
![]() | |
virtual | ~IEncodersRaw () |
Destructor. | |
Stub implementation of IEncodersRaw interface.
Inherit from this class if you want a stub implementation of methods in IPositionControlRaw. This class allows to gradually implement an interface; you just have to implement functions that are useful for the underlying device. Another way to see this class is as a means to convert compile time errors in runtime errors.
If you use this class please be aware that the device you are wrapping might not function properly because you missed to implement useful functionalities.
Definition at line 32 of file ImplementControlBoardInterfaces.h.
|
inlinevirtual |
Definition at line 42 of file ImplementControlBoardInterfaces.h.
|
inlineoverridevirtual |
Get the number of controlled axes.
This command asks the number of controlled axes for the current physical interface.
Implements yarp::dev::IEncodersRaw.
Definition at line 44 of file ImplementControlBoardInterfaces.h.
|
inlineoverridevirtual |
Read the instantaneous acceleration of an axis.
j | axis number |
spds | pointer to the array that will contain the output |
Implements yarp::dev::IEncodersRaw.
Definition at line 71 of file ImplementControlBoardInterfaces.h.
|
inlineoverridevirtual |
Read the instantaneous acceleration of all axes.
accs | pointer to the array that will contain the output |
Implements yarp::dev::IEncodersRaw.
Definition at line 74 of file ImplementControlBoardInterfaces.h.
|
inlineoverridevirtual |
Read the value of an encoder.
j | encoder number |
v | pointer to storage for the return value |
Implements yarp::dev::IEncodersRaw.
Definition at line 59 of file ImplementControlBoardInterfaces.h.
|
inlineoverridevirtual |
Read the instantaneous speed of an axis.
j | axis number |
sp | pointer to storage for the output |
Implements yarp::dev::IEncodersRaw.
Definition at line 65 of file ImplementControlBoardInterfaces.h.
|
inlineoverridevirtual |
Read the instantaneous acceleration of an axis.
spds | pointer to storage for the output values |
Implements yarp::dev::IEncodersRaw.
Definition at line 68 of file ImplementControlBoardInterfaces.h.
|
inlineoverridevirtual |
Read the position of all axes.
encs | pointer to the array that will contain the output |
Implements yarp::dev::IEncodersRaw.
Definition at line 62 of file ImplementControlBoardInterfaces.h.
|
inlineoverridevirtual |
Reset encoder, single joint.
Set the encoder value to zero
j | encoder number |
Implements yarp::dev::IEncodersRaw.
Definition at line 47 of file ImplementControlBoardInterfaces.h.
|
inlineoverridevirtual |
Reset encoders.
Set the encoders value to zero
Implements yarp::dev::IEncodersRaw.
Definition at line 50 of file ImplementControlBoardInterfaces.h.
|
inlineoverridevirtual |
Set the value of the encoder for a given joint.
j | encoder number |
val | new value |
Implements yarp::dev::IEncodersRaw.
Definition at line 53 of file ImplementControlBoardInterfaces.h.
|
inlineoverridevirtual |
Set the value of all encoders.
vals | pointer to the new values |
Implements yarp::dev::IEncodersRaw.
Definition at line 56 of file ImplementControlBoardInterfaces.h.