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

Interface for control boards implementig velocity control in encoder coordinates. More...

#include <yarp/dev/IVelocityControl.h>

+ Inheritance diagram for yarp::dev::IVelocityControlRaw:

Public Member Functions

virtual ~IVelocityControlRaw ()
 Destructor. More...
 
virtual bool getAxes (int *axis)=0
 Get the number of controlled axes. More...
 
virtual bool velocityMoveRaw (int j, double sp)=0
 Start motion at a given speed, single joint. More...
 
virtual bool velocityMoveRaw (const double *sp)=0
 Start motion at a given speed, multiple joints. More...
 
virtual bool setRefAccelerationRaw (int j, double acc)=0
 Set reference acceleration for a joint. More...
 
virtual bool setRefAccelerationsRaw (const double *accs)=0
 Set reference acceleration on all joints. More...
 
virtual bool getRefAccelerationRaw (int j, double *acc)=0
 Get reference acceleration for a joint. More...
 
virtual bool getRefAccelerationsRaw (double *accs)=0
 Get reference acceleration of all joints. More...
 
virtual bool stopRaw (int j)=0
 Stop motion, single joint. More...
 
virtual bool stopRaw ()=0
 Stop motion, multiple joints. More...
 
virtual bool velocityMoveRaw (const int n_joint, const int *joints, const double *spds)=0
 Start motion at a given speed for a subset of joints. More...
 
virtual bool getRefVelocityRaw (const int joint, double *vel)
 Get the last reference speed set by velocityMove for single joint. More...
 
virtual bool getRefVelocitiesRaw (double *vels)
 Get the last reference speed set by velocityMove for all joints. More...
 
virtual bool getRefVelocitiesRaw (const int n_joint, const int *joints, double *vels)
 Get the last reference speed set by velocityMove for a group of joints. More...
 
virtual bool setRefAccelerationsRaw (const int n_joint, const int *joints, const double *accs)=0
 Set reference acceleration for a subset of joints. More...
 
virtual bool getRefAccelerationsRaw (const int n_joint, const int *joints, double *accs)=0
 Get reference acceleration for a subset of joints. More...
 
virtual bool stopRaw (const int n_joint, const int *joints)=0
 Stop motion for a subset of joints. More...
 

Detailed Description

Interface for control boards implementig velocity control in encoder coordinates.

Definition at line 28 of file IVelocityControl.h.

Constructor & Destructor Documentation

◆ ~IVelocityControlRaw()

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

Destructor.

Definition at line 34 of file IVelocityControl.h.

Member Function Documentation

◆ getAxes()

virtual bool yarp::dev::IVelocityControlRaw::getAxes ( int *  axis)
pure virtual

Get the number of controlled axes.

This command asks the number of controlled axes for the current physical interface.

Parameters
axispointer to storage, return value
Returns
true/false.

Implemented in yarp::dev::StubImplVelocityControlRaw, and FakeMotionControl.

◆ getRefAccelerationRaw()

virtual bool yarp::dev::IVelocityControlRaw::getRefAccelerationRaw ( int  j,
double *  acc 
)
pure virtual

Get reference acceleration for a joint.

Returns the acceleration used to generate the trajectory profile.

Parameters
jjoint number
accpointer to storage for the return value
Returns
true/false on success/failure

Implemented in yarp::dev::StubImplVelocityControlRaw, and FakeMotionControl.

◆ getRefAccelerationsRaw() [1/2]

virtual bool yarp::dev::IVelocityControlRaw::getRefAccelerationsRaw ( const int  n_joint,
const int *  joints,
double *  accs 
)
pure virtual

Get reference acceleration for a subset of joints.

These are the values used during the interpolation of the trajectory.

Parameters
jointspointer to the array of joint numbers
accspointer to the array that will store the acceleration values.
Returns
true/false on success or failure

Implemented in yarp::dev::StubImplVelocityControlRaw, and FakeMotionControl.

◆ getRefAccelerationsRaw() [2/2]

virtual bool yarp::dev::IVelocityControlRaw::getRefAccelerationsRaw ( double *  accs)
pure virtual

Get reference acceleration of all joints.

These are the values used during the interpolation of the trajectory.

Parameters
accspointer to the array that will store the acceleration values.
Returns
true/false on success or failure

Implemented in yarp::dev::StubImplVelocityControlRaw, and FakeMotionControl.

◆ getRefVelocitiesRaw() [1/2]

virtual bool yarp::dev::IVelocityControlRaw::getRefVelocitiesRaw ( const int  n_joint,
const int *  joints,
double *  vels 
)
inlinevirtual

Get the last reference speed set by velocityMove for a group of joints.

Parameters
n_jointhow many joints this command is referring to
jointsof joints controlled. The size of this array is n_joints
velspointer to the array containing the requested values, one value for each joint. The size of the array is n_joints.
Returns
true/false on success/failure

Reimplemented in yarp::dev::StubImplVelocityControlRaw, and FakeMotionControl.

Definition at line 129 of file IVelocityControl.h.

◆ getRefVelocitiesRaw() [2/2]

virtual bool yarp::dev::IVelocityControlRaw::getRefVelocitiesRaw ( double *  vels)
inlinevirtual

Get the last reference speed set by velocityMove for all joints.

Parameters
velspointer to the array containing the new speed values, one value for each joint
Returns
true/false on success/failure

Reimplemented in yarp::dev::StubImplVelocityControlRaw, and FakeMotionControl.

Definition at line 120 of file IVelocityControl.h.

◆ getRefVelocityRaw()

virtual bool yarp::dev::IVelocityControlRaw::getRefVelocityRaw ( const int  joint,
double *  vel 
)
inlinevirtual

Get the last reference speed set by velocityMove for single joint.

Parameters
jjoint number
velreturns the requested reference.
Returns
true/false on success/failure

Reimplemented in yarp::dev::StubImplVelocityControlRaw, and FakeMotionControl.

Definition at line 114 of file IVelocityControl.h.

◆ setRefAccelerationRaw()

virtual bool yarp::dev::IVelocityControlRaw::setRefAccelerationRaw ( int  j,
double  acc 
)
pure virtual

Set reference acceleration for a joint.

This value is used during the trajectory generation.

Parameters
jjoint number
accacceleration value
Returns
true/false upon success/failure

Implemented in yarp::dev::StubImplVelocityControlRaw, and FakeMotionControl.

◆ setRefAccelerationsRaw() [1/2]

virtual bool yarp::dev::IVelocityControlRaw::setRefAccelerationsRaw ( const double *  accs)
pure virtual

Set reference acceleration on all joints.

This is the valure that is used during the generation of the trajectory.

Parameters
accspointer to the array of acceleration values
Returns
true/false upon success/failure

Implemented in yarp::dev::StubImplVelocityControlRaw, and FakeMotionControl.

◆ setRefAccelerationsRaw() [2/2]

virtual bool yarp::dev::IVelocityControlRaw::setRefAccelerationsRaw ( const int  n_joint,
const int *  joints,
const double *  accs 
)
pure virtual

Set reference acceleration for a subset of joints.

This is the valure that is used during the generation of the trajectory.

Parameters
jointspointer to the array of joint numbers
accspointer to the array containing acceleration values
Returns
true/false upon success/failure

Implemented in yarp::dev::StubImplVelocityControlRaw, and FakeMotionControl.

◆ stopRaw() [1/3]

virtual bool yarp::dev::IVelocityControlRaw::stopRaw ( )
pure virtual

Stop motion, multiple joints.

Returns
true/false on success or failure

Implemented in yarp::dev::StubImplVelocityControlRaw, and FakeMotionControl.

◆ stopRaw() [2/3]

virtual bool yarp::dev::IVelocityControlRaw::stopRaw ( const int  n_joint,
const int *  joints 
)
pure virtual

Stop motion for a subset of joints.

Parameters
jointspointer to the array of joint numbers
Returns
true/false on success or failure

Implemented in yarp::dev::StubImplVelocityControlRaw, and FakeMotionControl.

◆ stopRaw() [3/3]

virtual bool yarp::dev::IVelocityControlRaw::stopRaw ( int  j)
pure virtual

Stop motion, single joint.

Parameters
jjoint number
Returns
true/false on success or failure

Implemented in yarp::dev::StubImplVelocityControlRaw, and FakeMotionControl.

◆ velocityMoveRaw() [1/3]

virtual bool yarp::dev::IVelocityControlRaw::velocityMoveRaw ( const double *  sp)
pure virtual

Start motion at a given speed, multiple joints.

Parameters
sppointer to the array containing the new speed values
Returns
true/false upon success/failure

Implemented in yarp::dev::StubImplVelocityControlRaw, and FakeMotionControl.

◆ velocityMoveRaw() [2/3]

virtual bool yarp::dev::IVelocityControlRaw::velocityMoveRaw ( const int  n_joint,
const int *  joints,
const double *  spds 
)
pure virtual

Start motion at a given speed for a subset of joints.

Parameters
n_jointhow many joints this command is referring to
jointspointer to the array of joint numbers
spdspointer to the array containing the new speed values
Returns
true/false upon success/failure

Implemented in yarp::dev::StubImplVelocityControlRaw, and FakeMotionControl.

◆ velocityMoveRaw() [3/3]

virtual bool yarp::dev::IVelocityControlRaw::velocityMoveRaw ( int  j,
double  sp 
)
pure virtual

Start motion at a given speed, single joint.

Parameters
jjoint number
spspeed value
Returns
bool/false upone success/failure

Implemented in yarp::dev::StubImplVelocityControlRaw, and FakeMotionControl.


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