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

Control board, encoder interface. More...

#include <yarp/dev/IMotorEncoders.h>

+ Inheritance diagram for yarp::dev::IMotorEncodersRaw:

Public Member Functions

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...
 

Detailed Description

Control board, encoder interface.

Definition at line 27 of file IMotorEncoders.h.

Constructor & Destructor Documentation

◆ ~IMotorEncodersRaw()

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

Destructor.

Definition at line 33 of file IMotorEncoders.h.

Member Function Documentation

◆ getMotorEncoderAccelerationRaw()

virtual bool yarp::dev::IMotorEncodersRaw::getMotorEncoderAccelerationRaw ( int  m,
double *  spds 
)
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 FakeMotionControl.

◆ getMotorEncoderAccelerationsRaw()

virtual bool yarp::dev::IMotorEncodersRaw::getMotorEncoderAccelerationsRaw ( 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 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
mmotor number
cprvals 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
mmotor encoder number
vpointer 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
mmotor number
sppointer 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
spdspointer 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
encspointer 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
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 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
mmotor index
encsencoder value (pointer to)
timecorresponding 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
mpointer 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
mmotor number
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
mmotor number
cprnew 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
mmotor number
valnew 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
valspointer to the new values
Returns
true/false

Implemented in FakeMotionControl.


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