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. More... | |
bool | resetEncoderRaw (int j) override |
Reset encoder, single joint. More... | |
bool | resetEncodersRaw () override |
Reset encoders. More... | |
bool | setEncoderRaw (int j, double val) override |
Set the value of the encoder for a given joint. More... | |
bool | setEncodersRaw (const double *vals) override |
Set the value of all encoders. More... | |
bool | getEncoderRaw (int j, double *v) override |
Read the value of an encoder. More... | |
bool | getEncodersRaw (double *encs) override |
Read the position of all axes. More... | |
bool | getEncoderSpeedRaw (int j, double *sp) override |
Read the instantaneous speed of an axis. More... | |
bool | getEncoderSpeedsRaw (double *spds) override |
Read the instantaneous acceleration of an axis. More... | |
bool | getEncoderAccelerationRaw (int j, double *spds) override |
Read the instantaneous acceleration of an axis. More... | |
bool | getEncoderAccelerationsRaw (double *accs) override |
Read the instantaneous acceleration of all axes. More... | |
Public Member Functions inherited from yarp::dev::IEncodersRaw | |
virtual | ~IEncodersRaw () |
Destructor. More... | |
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 39 of file ImplementControlBoardInterfaces.h.
|
inlinevirtual |
Definition at line 49 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 51 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 78 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 81 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 66 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 72 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 75 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 69 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 54 of file ImplementControlBoardInterfaces.h.
|
inlineoverridevirtual |
Reset encoders.
Set the encoders value to zero
Implements yarp::dev::IEncodersRaw.
Definition at line 57 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 60 of file ImplementControlBoardInterfaces.h.
|
inlineoverridevirtual |
Set the value of all encoders.
vals | pointer to the new values |
Implements yarp::dev::IEncodersRaw.
Definition at line 63 of file ImplementControlBoardInterfaces.h.