YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::dev::IPositionDirectRaw Class Referenceabstract

Interface for a generic control board device implementing position control in encoder coordinates. More...

#include <yarp/dev/IPositionDirect.h>

+ Inheritance diagram for yarp::dev::IPositionDirectRaw:

Public Member Functions

virtual ~IPositionDirectRaw ()
 Destructor.
 
virtual yarp::dev::ReturnValue getAxes (size_t &axes)=0
 Get the number of controlled axes.
 
virtual yarp::dev::ReturnValue setPositionRaw (int j, double ref)=0
 Set new position for a single axis.
 
virtual yarp::dev::ReturnValue setPositionsRaw (const int n_joint, const int *joints, const double *refs)=0
 Set new reference point for all axes.
 
virtual yarp::dev::ReturnValue setPositionsRaw (const double *refs)=0
 Set new position for a set of axes.
 
virtual yarp::dev::ReturnValue getRefPositionRaw (const int joint, double *ref)=0
 Get the last position reference for the specified axis.
 
virtual yarp::dev::ReturnValue getRefPositionsRaw (double *refs)=0
 Get the last position reference for all axes.
 
virtual yarp::dev::ReturnValue getRefPositionsRaw (const int n_joint, const int *joints, double *refs)=0
 Get the last position reference for the specified group of axes.
 

Detailed Description

Interface for a generic control board device implementing position control in encoder coordinates.

This interface is used to send high frequency streaming commands to the boards, the aim is to reach low level control in firmware bypassing the trajectory generator, raw functions.

Definition at line 113 of file IPositionDirect.h.

Constructor & Destructor Documentation

◆ ~IPositionDirectRaw()

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

Destructor.

Definition at line 119 of file IPositionDirect.h.

Member Function Documentation

◆ getAxes()

virtual yarp::dev::ReturnValue yarp::dev::IPositionDirectRaw::getAxes ( size_t &  axes)
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 FakeMotionControl.

◆ getRefPositionRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPositionDirectRaw::getRefPositionRaw ( const int  joint,
double *  ref 
)
pure virtual

Get the last position reference for the specified axis.

This is the dual of setPositionsRaw and shall return only values sent using IPositionDirect interface. If other interfaces like IPositionControl are implemented by the device, this call must ignore their values, i.e. this call must never return a reference sent using IPositionControl::PositionMove.

Parameters
reflast reference sent using setPosition(s) functions
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getRefPositionsRaw() [1/2]

virtual yarp::dev::ReturnValue yarp::dev::IPositionDirectRaw::getRefPositionsRaw ( const int  n_joint,
const int *  joints,
double *  refs 
)
pure virtual

Get the last position reference for the specified group of axes.

This is the dual of setPositionsRaw and shall return only values sent using IPositionDirect interface. If other interfaces like IPositionControl are implemented by the device, this call must ignore their values, i.e. this call must never return a reference sent using IPositionControl::PositionMove.

Parameters
refarray containing last reference sent using setPosition(s) functions
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ getRefPositionsRaw() [2/2]

virtual yarp::dev::ReturnValue yarp::dev::IPositionDirectRaw::getRefPositionsRaw ( double *  refs)
pure virtual

Get the last position reference for all axes.

This is the dual of setPositionsRaw and shall return only values sent using IPositionDirect interface. If other interfaces like IPositionControl are implemented by the device, this call must ignore their values, i.e. this call must never return a reference sent using IPositionControl::PositionMove.

Parameters
refarray containing last reference sent using setPosition(s) functions
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ setPositionRaw()

virtual yarp::dev::ReturnValue yarp::dev::IPositionDirectRaw::setPositionRaw ( int  j,
double  ref 
)
pure virtual

Set new position for a single axis.

Parameters
jjoint number
refspecifies the new ref point
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ setPositionsRaw() [1/2]

virtual yarp::dev::ReturnValue yarp::dev::IPositionDirectRaw::setPositionsRaw ( const double *  refs)
pure virtual

Set new position for a set of axes.

Parameters
refsspecifies the new reference points
Returns
true/false on success/failure

Implemented in FakeMotionControl.

◆ setPositionsRaw() [2/2]

virtual yarp::dev::ReturnValue yarp::dev::IPositionDirectRaw::setPositionsRaw ( const int  n_joint,
const int *  joints,
const double *  refs 
)
pure virtual

Set new reference point for all axes.

Parameters
n_jointhow many joints this command is referring to
jointslist of joints controlled. The size of this array is n_joints
refsarray, new reference points, one value for each joint, the size is n_joints. The first value will be the new reference for the joint joints[0]. for example: n_joint 3 joints 0 2 4 refs 10 30 40
Returns
true/false on success/failure

Implemented in FakeMotionControl.


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