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

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

#include <yarp/dev/IVelocityControl.h>

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

Public Member Functions

virtual ~IVelocityControlRaw ()
 Destructor.
 
virtual yarp::dev::ReturnValue getAxes (size_t &axis)=0
 Get the number of controlled axes.
 
virtual yarp::dev::ReturnValue velocityMoveRaw (int j, double sp)=0
 Start motion at a given speed, single joint.
 
virtual yarp::dev::ReturnValue velocityMoveRaw (const double *sp)=0
 Start motion at a given speed, multiple joints.
 
virtual yarp::dev::ReturnValue setTrajAccelerationRaw (int j, double acc)=0
 Set reference acceleration for a joint.
 
virtual yarp::dev::ReturnValue setTrajAccelerationsRaw (const double *accs)=0
 Set reference acceleration on all joints.
 
virtual yarp::dev::ReturnValue getTrajAccelerationRaw (int j, double *acc)=0
 Get reference acceleration for a joint.
 
virtual yarp::dev::ReturnValue getTrajAccelerationsRaw (double *accs)=0
 Get reference acceleration of all joints.
 
virtual yarp::dev::ReturnValue stopRaw (int j)=0
 Stop motion, single joint.
 
virtual yarp::dev::ReturnValue stopRaw ()=0
 Stop motion, multiple joints.
 
virtual yarp::dev::ReturnValue velocityMoveRaw (const int n_joint, const int *joints, const double *spds)=0
 Start motion at a given speed for a subset of joints.
 
virtual yarp::dev::ReturnValue getTargetVelocityRaw (const int joint, double *vel)=0
 Get the last reference speed set by velocityMove for single joint.
 
virtual yarp::dev::ReturnValue getTargetVelocitiesRaw (double *vels)=0
 Get the last reference speed set by velocityMove for all joints.
 
virtual yarp::dev::ReturnValue getTargetVelocitiesRaw (const int n_joint, const int *joints, double *vels)=0
 Get the last reference speed set by velocityMove for a group of joints.
 
virtual yarp::dev::ReturnValue setTrajAccelerationsRaw (const int n_joint, const int *joints, const double *accs)=0
 Set reference acceleration for a subset of joints.
 
virtual yarp::dev::ReturnValue getTrajAccelerationsRaw (const int n_joint, const int *joints, double *accs)=0
 Get reference acceleration for a subset of joints.
 
virtual yarp::dev::ReturnValue stopRaw (const int n_joint, const int *joints)=0
 Stop motion for a subset of joints.
 

Detailed Description

Interface for control boards implementing velocity control in encoder coordinates.

Definition at line 24 of file IVelocityControl.h.

Constructor & Destructor Documentation

◆ ~IVelocityControlRaw()

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

Destructor.

Definition at line 30 of file IVelocityControl.h.

Member Function Documentation

◆ getAxes()

virtual yarp::dev::ReturnValue yarp::dev::IVelocityControlRaw::getAxes ( size_t &  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 FakeLaserWithMotor, FakeMotionControl, and yarp::dev::StubImplVelocityControlRaw.

◆ getTargetVelocitiesRaw() [1/2]

virtual yarp::dev::ReturnValue yarp::dev::IVelocityControlRaw::getTargetVelocitiesRaw ( const int  n_joint,
const int *  joints,
double *  vels 
)
pure virtual

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

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

◆ getTargetVelocitiesRaw() [2/2]

virtual yarp::dev::ReturnValue yarp::dev::IVelocityControlRaw::getTargetVelocitiesRaw ( double *  vels)
pure virtual

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

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

◆ getTargetVelocityRaw()

virtual yarp::dev::ReturnValue yarp::dev::IVelocityControlRaw::getTargetVelocityRaw ( const int  joint,
double *  vel 
)
pure virtual

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

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

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

◆ getTrajAccelerationRaw()

virtual yarp::dev::ReturnValue yarp::dev::IVelocityControlRaw::getTrajAccelerationRaw ( 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 FakeLaserWithMotor, FakeMotionControl, and yarp::dev::StubImplVelocityControlRaw.

◆ getTrajAccelerationsRaw() [1/2]

virtual yarp::dev::ReturnValue yarp::dev::IVelocityControlRaw::getTrajAccelerationsRaw ( 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 FakeLaserWithMotor, FakeMotionControl, and yarp::dev::StubImplVelocityControlRaw.

◆ getTrajAccelerationsRaw() [2/2]

virtual yarp::dev::ReturnValue yarp::dev::IVelocityControlRaw::getTrajAccelerationsRaw ( 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 FakeLaserWithMotor, FakeMotionControl, and yarp::dev::StubImplVelocityControlRaw.

◆ setTrajAccelerationRaw()

virtual yarp::dev::ReturnValue yarp::dev::IVelocityControlRaw::setTrajAccelerationRaw ( 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 FakeLaserWithMotor, FakeMotionControl, and yarp::dev::StubImplVelocityControlRaw.

◆ setTrajAccelerationsRaw() [1/2]

virtual yarp::dev::ReturnValue yarp::dev::IVelocityControlRaw::setTrajAccelerationsRaw ( const double *  accs)
pure virtual

Set reference acceleration on all joints.

This is the value 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 FakeLaserWithMotor, FakeMotionControl, and yarp::dev::StubImplVelocityControlRaw.

◆ setTrajAccelerationsRaw() [2/2]

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

Set reference acceleration for a subset of joints.

This is the value 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 FakeLaserWithMotor, FakeMotionControl, and yarp::dev::StubImplVelocityControlRaw.

◆ stopRaw() [1/3]

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

Stop motion, multiple joints.

Returns
true/false on success or failure

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

◆ stopRaw() [2/3]

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

◆ stopRaw() [3/3]

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

Stop motion, single joint.

Parameters
jjoint number
Returns
true/false on success or failure

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

◆ velocityMoveRaw() [1/3]

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

◆ velocityMoveRaw() [2/3]

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

◆ velocityMoveRaw() [3/3]

virtual yarp::dev::ReturnValue 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 upon success/failure

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


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