YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
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.
 
virtual yarp::dev::ReturnValue getNumberOfMotorEncodersRaw (int *num)=0
 Get the number of available motor encoders.
 
virtual yarp::dev::ReturnValue resetMotorEncoderRaw (int m)=0
 Reset motor encoder, single motor.
 
virtual yarp::dev::ReturnValue resetMotorEncodersRaw ()=0
 Reset motor encoders.
 
virtual yarp::dev::ReturnValue setMotorEncoderCountsPerRevolutionRaw (int m, const double cpr)=0
 Sets number of counts per revolution for motor encoder m.
 
virtual yarp::dev::ReturnValue getMotorEncoderCountsPerRevolutionRaw (int m, double *cpr)=0
 Gets number of counts per revolution for motor encoder m.
 
virtual yarp::dev::ReturnValue setMotorEncoderRaw (int m, const double val)=0
 Set the value of the motor encoder for a given motor.
 
virtual yarp::dev::ReturnValue setMotorEncodersRaw (const double *vals)=0
 Set the value of all motor encoders.
 
virtual yarp::dev::ReturnValue getMotorEncoderRaw (int m, double *v)=0
 Read the value of a motor encoder.
 
virtual yarp::dev::ReturnValue getMotorEncodersRaw (double *encs)=0
 Read the position of all motor encoders.
 
virtual yarp::dev::ReturnValue getMotorEncodersTimedRaw (double *encs, double *stamps)=0
 Read the instantaneous position of all motor encoders.
 
virtual yarp::dev::ReturnValue getMotorEncoderTimedRaw (int m, double *encs, double *stamp)=0
 Read the instantaneous position of a motor encoder.
 
virtual yarp::dev::ReturnValue getMotorEncoderSpeedRaw (int m, double *sp)=0
 Read the instantaneous speed of a motor encoder.
 
virtual yarp::dev::ReturnValue getMotorEncoderSpeedsRaw (double *spds)=0
 Read the instantaneous speed of all motor encoders.
 
virtual yarp::dev::ReturnValue getMotorEncoderAccelerationRaw (int m, double *spds)=0
 Read the instantaneous acceleration of a motor encoder.
 
virtual yarp::dev::ReturnValue getMotorEncoderAccelerationsRaw (double *accs)=0
 Read the instantaneous acceleration of all motor encoders.
 

Detailed Description

Control board, encoder interface.

Definition at line 23 of file IMotorEncoders.h.

Constructor & Destructor Documentation

◆ ~IMotorEncodersRaw()

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

Destructor.

Definition at line 29 of file IMotorEncoders.h.

Member Function Documentation

◆ getMotorEncoderAccelerationRaw()

virtual yarp::dev::ReturnValue 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 FakeMotionControlMicro, and FakeMotionControl.

◆ getMotorEncoderAccelerationsRaw()

virtual yarp::dev::ReturnValue 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, and FakeMotionControlMicro.

◆ getMotorEncoderCountsPerRevolutionRaw()

virtual yarp::dev::ReturnValue 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, and FakeMotionControlMicro.

◆ getMotorEncoderRaw()

virtual yarp::dev::ReturnValue 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 FakeMotionControlMicro, and FakeMotionControl.

◆ getMotorEncoderSpeedRaw()

virtual yarp::dev::ReturnValue yarp::dev::IMotorEncodersRaw::getMotorEncoderSpeedRaw ( int  m,
double *  sp 
)
pure virtual

Read the instantaneous speed of a motor encoder.

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

Implemented in FakeMotionControlMicro, and FakeMotionControl.

◆ getMotorEncoderSpeedsRaw()

virtual yarp::dev::ReturnValue 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, and FakeMotionControlMicro.

◆ getMotorEncodersRaw()

virtual yarp::dev::ReturnValue 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, and FakeMotionControlMicro.

◆ getMotorEncodersTimedRaw()

virtual yarp::dev::ReturnValue 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, and FakeMotionControlMicro.

◆ getMotorEncoderTimedRaw()

virtual yarp::dev::ReturnValue 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, and FakeMotionControlMicro.

◆ getNumberOfMotorEncodersRaw()

virtual yarp::dev::ReturnValue 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, and FakeMotionControlMicro.

◆ resetMotorEncoderRaw()

virtual yarp::dev::ReturnValue 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 FakeMotionControlMicro, and FakeMotionControl.

◆ resetMotorEncodersRaw()

virtual yarp::dev::ReturnValue yarp::dev::IMotorEncodersRaw::resetMotorEncodersRaw ( )
pure virtual

Reset motor encoders.

Set the motor encoders value to zero.

Returns
true/false

Implemented in FakeMotionControl, and FakeMotionControlMicro.

◆ setMotorEncoderCountsPerRevolutionRaw()

virtual yarp::dev::ReturnValue 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, and FakeMotionControlMicro.

◆ setMotorEncoderRaw()

virtual yarp::dev::ReturnValue 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 FakeMotionControlMicro, and FakeMotionControl.

◆ setMotorEncodersRaw()

virtual yarp::dev::ReturnValue 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, and FakeMotionControlMicro.


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