Stub implementation of IPositionControl2Raw interface. More...
#include <yarp/dev/ImplementVelocityControl.h>
Public Member Functions | |
bool | getAxes (int *axes) override |
Get the number of controlled axes. More... | |
bool | velocityMoveRaw (int j, double sp) override |
Start motion at a given speed, single joint. More... | |
bool | velocityMoveRaw (const double *sp) override |
Start motion at a given speed, multiple joints. More... | |
bool | setRefAccelerationRaw (int j, double acc) override |
Set reference acceleration for a joint. More... | |
bool | setRefAccelerationsRaw (const double *accs) override |
Set reference acceleration on all joints. More... | |
bool | getRefAccelerationRaw (int j, double *acc) override |
Get reference acceleration for a joint. More... | |
bool | getRefAccelerationsRaw (double *accs) override |
Get reference acceleration of all joints. More... | |
bool | stopRaw (int j) override |
Stop motion, single joint. More... | |
bool | stopRaw () override |
Stop motion, multiple joints. More... | |
bool | velocityMoveRaw (const int n_joint, const int *joints, const double *spds) override |
Start motion at a given speed for a subset of joints. More... | |
bool | getRefVelocityRaw (const int joint, double *vel) override |
Get the last reference speed set by velocityMove for single joint. More... | |
bool | getRefVelocitiesRaw (double *vels) override |
Get the last reference speed set by velocityMove for all joints. More... | |
bool | getRefVelocitiesRaw (const int n_joint, const int *joints, double *vels) override |
Get the last reference speed set by velocityMove for a group of joints. More... | |
bool | setRefAccelerationsRaw (const int n_joint, const int *joints, const double *accs) override |
Set reference acceleration for a subset of joints. More... | |
bool | getRefAccelerationsRaw (const int n_joint, const int *joints, double *accs) override |
Get reference acceleration for a subset of joints. More... | |
bool | stopRaw (const int n_joint, const int *joints) override |
Stop motion for a subset of joints. More... | |
Public Member Functions inherited from yarp::dev::IVelocityControlRaw | |
virtual | ~IVelocityControlRaw () |
Destructor. More... | |
Stub implementation of IPositionControl2Raw interface.
Inherit from this class if you want a stub implementation of methods in IPositionControlRaw. This class allows to gradually implement an interface; you just have to implement functions that are useful for the underlying device. Another way to see this class is as a means to convert compile time errors in runtime errors.
If you use this class please be aware that the device you are wrapping might not function properly because you missed to implement useful functionalities.
Definition at line 108 of file ImplementVelocityControl.h.
|
inlineoverridevirtual |
Get the number of controlled axes.
This command asks the number of controlled axes for the current physical interface.
axis | pointer to storage, return value |
Implements yarp::dev::IVelocityControlRaw.
Definition at line 126 of file ImplementVelocityControl.h.
|
inlineoverridevirtual |
Get reference acceleration for a joint.
Returns the acceleration used to generate the trajectory profile.
j | joint number |
acc | pointer to storage for the return value |
Implements yarp::dev::IVelocityControlRaw.
Definition at line 141 of file ImplementVelocityControl.h.
|
inlineoverridevirtual |
Get reference acceleration for a subset of joints.
These are the values used during the interpolation of the trajectory.
joints | pointer to the array of joint numbers |
accs | pointer to the array that will store the acceleration values. |
Implements yarp::dev::IVelocityControlRaw.
Definition at line 170 of file ImplementVelocityControl.h.
|
inlineoverridevirtual |
Get reference acceleration of all joints.
These are the values used during the interpolation of the trajectory.
accs | pointer to the array that will store the acceleration values. |
Implements yarp::dev::IVelocityControlRaw.
Definition at line 144 of file ImplementVelocityControl.h.
|
inlineoverridevirtual |
Get the last reference speed set by velocityMove for a group of joints.
n_joint | how many joints this command is referring to |
joints | of joints controlled. The size of this array is n_joints |
vels | pointer to the array containing the requested values, one value for each joint. The size of the array is n_joints. |
Reimplemented from yarp::dev::IVelocityControlRaw.
Definition at line 164 of file ImplementVelocityControl.h.
|
inlineoverridevirtual |
Get the last reference speed set by velocityMove for all joints.
vels | pointer to the array containing the new speed values, one value for each joint |
Reimplemented from yarp::dev::IVelocityControlRaw.
Definition at line 161 of file ImplementVelocityControl.h.
|
inlineoverridevirtual |
Get the last reference speed set by velocityMove for single joint.
j | joint number |
vel | returns the requested reference. |
Reimplemented from yarp::dev::IVelocityControlRaw.
Definition at line 158 of file ImplementVelocityControl.h.
|
inlineoverridevirtual |
Set reference acceleration for a joint.
This value is used during the trajectory generation.
j | joint number |
acc | acceleration value |
Implements yarp::dev::IVelocityControlRaw.
Definition at line 135 of file ImplementVelocityControl.h.
|
inlineoverridevirtual |
Set reference acceleration on all joints.
This is the valure that is used during the generation of the trajectory.
accs | pointer to the array of acceleration values |
Implements yarp::dev::IVelocityControlRaw.
Definition at line 138 of file ImplementVelocityControl.h.
|
inlineoverridevirtual |
Set reference acceleration for a subset of joints.
This is the valure that is used during the generation of the trajectory.
joints | pointer to the array of joint numbers |
accs | pointer to the array containing acceleration values |
Implements yarp::dev::IVelocityControlRaw.
Definition at line 167 of file ImplementVelocityControl.h.
|
inlineoverridevirtual |
Stop motion, multiple joints.
Implements yarp::dev::IVelocityControlRaw.
Definition at line 150 of file ImplementVelocityControl.h.
|
inlineoverridevirtual |
Stop motion for a subset of joints.
joints | pointer to the array of joint numbers |
Implements yarp::dev::IVelocityControlRaw.
Definition at line 173 of file ImplementVelocityControl.h.
|
inlineoverridevirtual |
Stop motion, single joint.
j | joint number |
Implements yarp::dev::IVelocityControlRaw.
Definition at line 147 of file ImplementVelocityControl.h.
|
inlineoverridevirtual |
Start motion at a given speed, multiple joints.
sp | pointer to the array containing the new speed values |
Implements yarp::dev::IVelocityControlRaw.
Definition at line 132 of file ImplementVelocityControl.h.
|
inlineoverridevirtual |
Start motion at a given speed for a subset of joints.
n_joint | how many joints this command is referring to |
joints | pointer to the array of joint numbers |
spds | pointer to the array containing the new speed values |
Implements yarp::dev::IVelocityControlRaw.
Definition at line 155 of file ImplementVelocityControl.h.
|
inlineoverridevirtual |
Start motion at a given speed, single joint.
j | joint number |
sp | speed value |
Implements yarp::dev::IVelocityControlRaw.
Definition at line 129 of file ImplementVelocityControl.h.