YARP
Yet Another Robot Platform
yarp::dev::IEncodersRaw Class Referenceabstract

Control board, encoder interface. More...

#include <yarp/dev/IEncoders.h>

+ Inheritance diagram for yarp::dev::IEncodersRaw:

Public Member Functions

virtual ~IEncodersRaw ()
 Destructor. More...
 
virtual bool getAxes (int *ax)=0
 Get the number of controlled axes. More...
 
virtual bool resetEncoderRaw (int j)=0
 Reset encoder, single joint. More...
 
virtual bool resetEncodersRaw ()=0
 Reset encoders. More...
 
virtual bool setEncoderRaw (int j, double val)=0
 Set the value of the encoder for a given joint. More...
 
virtual bool setEncodersRaw (const double *vals)=0
 Set the value of all encoders. More...
 
virtual bool getEncoderRaw (int j, double *v)=0
 Read the value of an encoder. More...
 
virtual bool getEncodersRaw (double *encs)=0
 Read the position of all axes. More...
 
virtual bool getEncoderSpeedRaw (int j, double *sp)=0
 Read the instantaneous speed of an axis. More...
 
virtual bool getEncoderSpeedsRaw (double *spds)=0
 Read the instantaneous acceleration of an axis. More...
 
virtual bool getEncoderAccelerationRaw (int j, double *spds)=0
 Read the instantaneous acceleration of an axis. More...
 
virtual bool getEncoderAccelerationsRaw (double *accs)=0
 Read the instantaneous acceleration of all axes. More...
 

Detailed Description

Control board, encoder interface.

Definition at line 27 of file IEncoders.h.

Constructor & Destructor Documentation

◆ ~IEncodersRaw()

virtual yarp::dev::IEncodersRaw::~IEncodersRaw ( )
inlinevirtual

Destructor.

Definition at line 33 of file IEncoders.h.

Member Function Documentation

◆ getAxes()

virtual bool yarp::dev::IEncodersRaw::getAxes ( int *  ax)
pure virtual

Get the number of controlled axes.

This command asks the number of controlled axes for the current physical interface.

Returns
the number of controlled axes.

Implemented in yarp::dev::StubImplEncodersRaw, and FakeMotionControl.

◆ getEncoderAccelerationRaw()

virtual bool yarp::dev::IEncodersRaw::getEncoderAccelerationRaw ( int  j,
double *  spds 
)
pure virtual

Read the instantaneous acceleration of an axis.

Parameters
jaxis number
spdspointer to the array that will contain the output

Implemented in yarp::dev::StubImplEncodersRaw, and FakeMotionControl.

◆ getEncoderAccelerationsRaw()

virtual bool yarp::dev::IEncodersRaw::getEncoderAccelerationsRaw ( double *  accs)
pure virtual

Read the instantaneous acceleration of all axes.

Parameters
accspointer to the array that will contain the output
Returns
true if all goes well, false if anything bad happens.

Implemented in yarp::dev::StubImplEncodersRaw, and FakeMotionControl.

◆ getEncoderRaw()

virtual bool yarp::dev::IEncodersRaw::getEncoderRaw ( int  j,
double *  v 
)
pure virtual

Read the value of an encoder.

Parameters
jencoder number
vpointer to storage for the return value
Returns
true/false, upon success/failure (you knew it, uh?)

Implemented in yarp::dev::StubImplEncodersRaw, and FakeMotionControl.

◆ getEncoderSpeedRaw()

virtual bool yarp::dev::IEncodersRaw::getEncoderSpeedRaw ( int  j,
double *  sp 
)
pure virtual

Read the instantaneous speed of an axis.

Parameters
jaxis number
sppointer to storage for the output
Returns
true if successful, false ... otherwise.

Implemented in yarp::dev::StubImplEncodersRaw, and FakeMotionControl.

◆ getEncoderSpeedsRaw()

virtual bool yarp::dev::IEncodersRaw::getEncoderSpeedsRaw ( double *  spds)
pure virtual

Read the instantaneous acceleration of an axis.

Parameters
spdspointer to storage for the output values
Returns
guess what? (true/false on success or failure).

Implemented in yarp::dev::StubImplEncodersRaw, and FakeMotionControl.

◆ getEncodersRaw()

virtual bool yarp::dev::IEncodersRaw::getEncodersRaw ( double *  encs)
pure virtual

Read the position of all axes.

Parameters
encspointer to the array that will contain the output
Returns
true/false on success/failure

Implemented in yarp::dev::StubImplEncodersRaw, and FakeMotionControl.

◆ resetEncoderRaw()

virtual bool yarp::dev::IEncodersRaw::resetEncoderRaw ( int  j)
pure virtual

Reset encoder, single joint.

Set the encoder value to zero

Parameters
jencoder number
Returns
true/false

Implemented in yarp::dev::StubImplEncodersRaw, and FakeMotionControl.

◆ resetEncodersRaw()

virtual bool yarp::dev::IEncodersRaw::resetEncodersRaw ( )
pure virtual

Reset encoders.

Set the encoders value to zero

Returns
true/false

Implemented in yarp::dev::StubImplEncodersRaw, and FakeMotionControl.

◆ setEncoderRaw()

virtual bool yarp::dev::IEncodersRaw::setEncoderRaw ( int  j,
double  val 
)
pure virtual

Set the value of the encoder for a given joint.

Parameters
jencoder number
valnew value
Returns
true/false

Implemented in yarp::dev::StubImplEncodersRaw, and FakeMotionControl.

◆ setEncodersRaw()

virtual bool yarp::dev::IEncodersRaw::setEncodersRaw ( const double *  vals)
pure virtual

Set the value of all encoders.

Parameters
valspointer to the new values
Returns
true/false

Implemented in yarp::dev::StubImplEncodersRaw, and FakeMotionControl.


The documentation for this class was generated from the following file: