Interface for control boards implementing direct velocity control.
More...
#include <yarp/dev/IVelocityDirect.h>
Interface for control boards implementing direct velocity control.
Definition at line 24 of file IVelocityDirect.h.
◆ ~IVelocityDirectRaw()
virtual yarp::dev::IVelocityDirectRaw::~IVelocityDirectRaw |
( |
| ) |
|
|
inlinevirtual |
◆ getAxes()
Get the number of controlled axes.
- Parameters
-
axes | returned 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
-
jnt | joint number |
vel | returns 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
-
jnts | vector containing the ids of the joints to control. |
vels | vector 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
-
vels | vector 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
-
vels | vector 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
-
jnts | vector containing the ids of the joints to control. |
vels | vector containing the joint velocities for the required subset. |
- Returns
- true on success
Implemented in FakeMotionControl.
◆ setDesiredVelocityRaw() [3/3]
Set the velocity of single joint.
- Parameters
-
jnt | joint number |
vel | speed value |
- Returns
- true on success
Implemented in FakeMotionControl.
The documentation for this class was generated from the following file: