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

Interface for control boards implementing direct velocity control. More...

#include <yarp/dev/IVelocityDirect.h>

+ Inheritance diagram for yarp::dev::IVelocityDirectRaw:

Public Member Functions

virtual ~IVelocityDirectRaw ()
 Destructor.
 
virtual yarp::dev::ReturnValue getAxes (size_t &axes)=0
 Get the number of controlled axes.
 
virtual yarp::dev::ReturnValue setDesiredVelocityRaw (int jnt, double vel)=0
 Set the velocity of single joint.
 
virtual yarp::dev::ReturnValue setDesiredVelocityRaw (const std::vector< double > &vels)=0
 Set the velocity of all joints.
 
virtual yarp::dev::ReturnValue setDesiredVelocityRaw (const std::vector< int > &jnts, const std::vector< double > &vels)=0
 Set the velocity of a subset of joints.
 
virtual yarp::dev::ReturnValue getDesiredVelocityRaw (const int jnt, double &vel)=0
 Get the last reference velocity set by setDesiredVelocity() for a single joint.
 
virtual yarp::dev::ReturnValue getDesiredVelocityRaw (std::vector< double > &vels)=0
 Get the last reference velocity set by setDesiredVelocity() for all joints.
 
virtual yarp::dev::ReturnValue getDesiredVelocityRaw (const std::vector< int > &jnts, std::vector< double > &vels)=0
 Get the last reference velocity set by setDesiredVelocity() for a group of joints.
 

Detailed Description

Interface for control boards implementing direct velocity control.

Definition at line 24 of file IVelocityDirect.h.

Constructor & Destructor Documentation

◆ ~IVelocityDirectRaw()

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

Destructor.

Definition at line 30 of file IVelocityDirect.h.

Member Function Documentation

◆ getAxes()

virtual yarp::dev::ReturnValue yarp::dev::IVelocityDirectRaw::getAxes ( size_t axes)
pure virtual

Get the number of controlled axes.

Parameters
axesreturned number of controllable axes
Returns
true on success

Implemented in FakeMotionControl.

◆ getDesiredVelocityRaw() [1/3]

virtual yarp::dev::ReturnValue yarp::dev::IVelocityDirectRaw::getDesiredVelocityRaw ( const int  jnt,
double &  vel 
)
pure virtual

Get the last reference velocity set by setDesiredVelocity() for a single joint.

Parameters
jntjoint number
velreturns the velocity reference for the specified joint.
Returns
true on success

Implemented in FakeMotionControl.

◆ getDesiredVelocityRaw() [2/3]

virtual yarp::dev::ReturnValue yarp::dev::IVelocityDirectRaw::getDesiredVelocityRaw ( const std::vector< int > &  jnts,
std::vector< double > &  vels 
)
pure virtual

Get the last reference velocity set by setDesiredVelocity() for a group of joints.

Parameters
jntsvector containing the ids of the joints to control.
velsvector containing the velocity references of the joints belonging to the required subset.
Returns
true on success

Implemented in FakeMotionControl.

◆ getDesiredVelocityRaw() [3/3]

virtual yarp::dev::ReturnValue yarp::dev::IVelocityDirectRaw::getDesiredVelocityRaw ( std::vector< double > &  vels)
pure virtual

Get the last reference velocity set by setDesiredVelocity() for all joints.

Parameters
velsvector containing the velocity references of all joints.
Returns
true on success

Implemented in FakeMotionControl.

◆ setDesiredVelocityRaw() [1/3]

virtual yarp::dev::ReturnValue yarp::dev::IVelocityDirectRaw::setDesiredVelocityRaw ( const std::vector< double > &  vels)
pure virtual

Set the velocity of all joints.

Parameters
velsvector containing joint velocities for all joints
Returns
true on success

Implemented in FakeMotionControl.

◆ setDesiredVelocityRaw() [2/3]

virtual yarp::dev::ReturnValue yarp::dev::IVelocityDirectRaw::setDesiredVelocityRaw ( const std::vector< int > &  jnts,
const std::vector< double > &  vels 
)
pure virtual

Set the velocity of a subset of joints.

Parameters
jntsvector containing the ids of the joints to control.
velsvector containing the joint velocities for the required subset.
Returns
true on success

Implemented in FakeMotionControl.

◆ setDesiredVelocityRaw() [3/3]

virtual yarp::dev::ReturnValue yarp::dev::IVelocityDirectRaw::setDesiredVelocityRaw ( int  jnt,
double  vel 
)
pure virtual

Set the velocity of single joint.

Parameters
jntjoint number
velspeed value
Returns
true on success

Implemented in FakeMotionControl.


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