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

Control board, encoder interface. More...

#include <yarp/dev/IMotorEncoders.h>

+ Inheritance diagram for yarp::dev::IMotorEncoders:

Detailed Description

Control board, encoder interface.

Definition at line 154 of file IMotorEncoders.h.

Public Member Functions

virtual ~IMotorEncoders ()
 Destructor. More...
 
virtual bool getNumberOfMotorEncoders (int *num)=0
 Get the number of available motor encoders. More...
 
virtual bool resetMotorEncoder (int m)=0
 Reset motor encoder, single motor. More...
 
virtual bool resetMotorEncoders ()=0
 Reset motor encoders. More...
 
virtual bool setMotorEncoderCountsPerRevolution (int m, const double cpr)=0
 Sets number of counts per revolution for motor encoder m. More...
 
virtual bool getMotorEncoderCountsPerRevolution (int m, double *cpr)=0
 Gets number of counts per revolution for motor encoder m. More...
 
virtual bool setMotorEncoder (int m, const double val)=0
 Set the value of the motor encoder for a given motor. More...
 
virtual bool setMotorEncoders (const double *vals)=0
 Set the value of all motor encoders. More...
 
virtual bool getMotorEncoder (int m, double *v)=0
 Read the value of a motor encoder. More...
 
virtual bool getMotorEncoders (double *encs)=0
 Read the position of all motor encoders. More...
 
virtual bool getMotorEncodersTimed (double *encs, double *time)=0
 Read the instantaneous position of all motor encoders. More...
 
virtual bool getMotorEncoderTimed (int m, double *encs, double *time)=0
 Read the instantaneous position of a motor encoder. More...
 
virtual bool getMotorEncoderSpeed (int m, double *sp)=0
 Read the istantaneous speed of a motor encoder. More...
 
virtual bool getMotorEncoderSpeeds (double *spds)=0
 Read the instantaneous speed of all motor encoders. More...
 
virtual bool getMotorEncoderAcceleration (int m, double *acc)=0
 Read the instantaneous acceleration of a motor encoder. More...
 
virtual bool getMotorEncoderAccelerations (double *accs)=0
 Read the instantaneous acceleration of all motor encoders. More...
 

Constructor & Destructor Documentation

◆ ~IMotorEncoders()

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

Destructor.

Definition at line 160 of file IMotorEncoders.h.

Member Function Documentation

◆ getMotorEncoder()

virtual bool yarp::dev::IMotorEncoders::getMotorEncoder ( int  m,
double *  v 
)
pure virtual

Read the value of a motor encoder.

Parameters
mmotor encoder number
vpointer to storage for the return value
Returns
true/false

Implemented in yarp::dev::ImplementMotorEncoders, ControlBoardWrapper, ControlBoardRemapper, and RemoteControlBoard.

◆ getMotorEncoderAcceleration()

virtual bool yarp::dev::IMotorEncoders::getMotorEncoderAcceleration ( int  m,
double *  acc 
)
pure virtual

Read the instantaneous acceleration of a motor encoder.

Parameters
mmotor number
accpointer to the array that will contain the output
Returns
true if successful, false otherwise.

Implemented in yarp::dev::ImplementMotorEncoders, ControlBoardWrapper, ControlBoardRemapper, and RemoteControlBoard.

◆ getMotorEncoderAccelerations()

virtual bool yarp::dev::IMotorEncoders::getMotorEncoderAccelerations ( double *  accs)
pure virtual

Read the instantaneous acceleration of all motor encoders.

Parameters
accspointer to the array that will contain the output
Returns
true if successful, false otherwise.

Implemented in yarp::dev::ImplementMotorEncoders, RemoteControlBoard, ControlBoardWrapper, and ControlBoardRemapper.

◆ getMotorEncoderCountsPerRevolution()

virtual bool yarp::dev::IMotorEncoders::getMotorEncoderCountsPerRevolution ( int  m,
double *  cpr 
)
pure virtual

Gets number of counts per revolution for motor encoder m.

Parameters
mmotor number
cprvals pointer to the new value
Returns
true/false

Implemented in yarp::dev::ImplementMotorEncoders, RemoteControlBoard, ControlBoardWrapper, and ControlBoardRemapper.

◆ getMotorEncoders()

virtual bool yarp::dev::IMotorEncoders::getMotorEncoders ( double *  encs)
pure virtual

Read the position of all motor encoders.

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

Implemented in yarp::dev::ImplementMotorEncoders, RemoteControlBoard, ControlBoardWrapper, and ControlBoardRemapper.

◆ getMotorEncoderSpeed()

virtual bool yarp::dev::IMotorEncoders::getMotorEncoderSpeed ( int  m,
double *  sp 
)
pure virtual

Read the istantaneous speed of a motor encoder.

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

Implemented in yarp::dev::ImplementMotorEncoders, ControlBoardWrapper, ControlBoardRemapper, and RemoteControlBoard.

◆ getMotorEncoderSpeeds()

virtual bool yarp::dev::IMotorEncoders::getMotorEncoderSpeeds ( double *  spds)
pure virtual

Read the instantaneous speed of all motor encoders.

Parameters
spdspointer to storage for the output values
Returns
true if successful, false otherwise.

Implemented in yarp::dev::ImplementMotorEncoders, RemoteControlBoard, ControlBoardWrapper, and ControlBoardRemapper.

◆ getMotorEncodersTimed()

virtual bool yarp::dev::IMotorEncoders::getMotorEncodersTimed ( double *  encs,
double *  time 
)
pure virtual

Read the instantaneous position of all motor encoders.

Parameters
encspointer to the array that will contain the output
timepointer to the array that will contain individual timestamps
Returns
true if successful, false otherwise.

Implemented in RemoteControlBoard, yarp::dev::ImplementMotorEncoders, ControlBoardWrapper, and ControlBoardRemapper.

◆ getMotorEncoderTimed()

virtual bool yarp::dev::IMotorEncoders::getMotorEncoderTimed ( int  m,
double *  encs,
double *  time 
)
pure virtual

Read the instantaneous position of a motor encoder.

Parameters
mmotor index
encsencoder value (pointer to)
timecorresponding timestamp (pointer to)
Returns
true if successful, false otherwise.

Implemented in yarp::dev::ImplementMotorEncoders, ControlBoardWrapper, ControlBoardRemapper, and RemoteControlBoard.

◆ getNumberOfMotorEncoders()

virtual bool yarp::dev::IMotorEncoders::getNumberOfMotorEncoders ( int *  num)
pure virtual

Get the number of available motor encoders.

Parameters
mpointer to a value representing the number of available motor encoders.
Returns
true/false

Implemented in yarp::dev::ImplementMotorEncoders, RemoteControlBoard, ControlBoardWrapper, and ControlBoardRemapper.

◆ resetMotorEncoder()

virtual bool yarp::dev::IMotorEncoders::resetMotorEncoder ( int  m)
pure virtual

Reset motor encoder, single motor.

Set the encoder value to zero.

Parameters
mmotor number
Returns
true/false

Implemented in yarp::dev::ImplementMotorEncoders, ControlBoardWrapper, ControlBoardRemapper, and RemoteControlBoard.

◆ resetMotorEncoders()

virtual bool yarp::dev::IMotorEncoders::resetMotorEncoders ( )
pure virtual

Reset motor encoders.

Set the motor encoders value to zero.

Returns
true/false

Implemented in yarp::dev::ImplementMotorEncoders, RemoteControlBoard, ControlBoardWrapper, and ControlBoardRemapper.

◆ setMotorEncoder()

virtual bool yarp::dev::IMotorEncoders::setMotorEncoder ( int  m,
const double  val 
)
pure virtual

Set the value of the motor encoder for a given motor.

Parameters
mmotor number
valnew value
Returns
true/false

Implemented in yarp::dev::ImplementMotorEncoders, ControlBoardWrapper, ControlBoardRemapper, and RemoteControlBoard.

◆ setMotorEncoderCountsPerRevolution()

virtual bool yarp::dev::IMotorEncoders::setMotorEncoderCountsPerRevolution ( int  m,
const double  cpr 
)
pure virtual

Sets number of counts per revolution for motor encoder m.

Parameters
mmotor number
cprnew value
Returns
true/false

Implemented in yarp::dev::ImplementMotorEncoders, RemoteControlBoard, ControlBoardWrapper, and ControlBoardRemapper.

◆ setMotorEncoders()

virtual bool yarp::dev::IMotorEncoders::setMotorEncoders ( const double *  vals)
pure virtual

Set the value of all motor encoders.

Parameters
valspointer to the new values
Returns
true/false

Implemented in yarp::dev::ImplementMotorEncoders, RemoteControlBoard, ControlBoardWrapper, and ControlBoardRemapper.


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