Interface for control boards implementing velocity control. More...
#include <yarp/dev/IVelocityControl.h>
Inheritance diagram for yarp::dev::IVelocityControl:Public Member Functions | |
| virtual | ~IVelocityControl () |
| Destructor. | |
| virtual yarp::dev::ReturnValue | getAxes (size_t &axes)=0 |
| Get the number of controlled axes. | |
| virtual yarp::dev::ReturnValue | velocityMove (int j, double sp)=0 |
| Start motion at a given speed, single joint. | |
| virtual yarp::dev::ReturnValue | velocityMove (const double *sp)=0 |
| Start motion at a given speed, multiple joints. | |
| virtual yarp::dev::ReturnValue | setTrajAcceleration (int j, double acc)=0 |
| Set reference acceleration for a joint. | |
| virtual yarp::dev::ReturnValue | setTrajAccelerations (const double *accs)=0 |
| Set reference acceleration on all joints. | |
| virtual yarp::dev::ReturnValue | getTrajAcceleration (int j, double *acc)=0 |
| Get reference acceleration for a joint. | |
| virtual yarp::dev::ReturnValue | getTrajAccelerations (double *accs)=0 |
| Get reference acceleration of all joints. | |
| virtual yarp::dev::ReturnValue | stop (int j)=0 |
| Stop motion, single joint. | |
| virtual yarp::dev::ReturnValue | stop ()=0 |
| Stop motion, multiple joints. | |
| virtual yarp::dev::ReturnValue | velocityMove (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 | getTargetVelocity (const int joint, double *vel)=0 |
| Get the last reference speed set by velocityMove for single joint. | |
| virtual yarp::dev::ReturnValue | getTargetVelocities (double *vels)=0 |
| Get the last reference speed set by velocityMove for all joints. | |
| virtual yarp::dev::ReturnValue | getTargetVelocities (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 | setTrajAccelerations (const int n_joint, const int *joints, const double *accs)=0 |
| Set reference acceleration for a subset of joints. | |
| virtual yarp::dev::ReturnValue | getTrajAccelerations (const int n_joint, const int *joints, double *accs)=0 |
| Get reference acceleration for a subset of joints. | |
| virtual yarp::dev::ReturnValue | stop (const int n_joint, const int *joints)=0 |
| Stop motion for a subset of joints. | |
Interface for control boards implementing velocity control.
Definition at line 155 of file IVelocityControl.h.
|
inlinevirtual |
Destructor.
Definition at line 161 of file IVelocityControl.h.
|
pure virtual |
Get the number of controlled axes.
This command asks the number of controlled axes for the current physical interface. param axes pointer to storage
Implemented in ControlBoardRemapper, FakeLaserWithMotor, FakeMotionControl, ControlBoard_nwc_yarp, and yarp::dev::ImplementVelocityControl.
|
pure virtual |
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. |
Implemented in ControlBoardRemapper, ControlBoard_nwc_yarp, and yarp::dev::ImplementVelocityControl.
|
pure virtual |
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 |
Implemented in ControlBoardRemapper, ControlBoard_nwc_yarp, and yarp::dev::ImplementVelocityControl.
|
pure virtual |
Get the last reference speed set by velocityMove for single joint.
| j | joint number |
| vel | returns the requested reference. |
Implemented in ControlBoardRemapper, ControlBoard_nwc_yarp, and yarp::dev::ImplementVelocityControl.
|
pure virtual |
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 |
Implemented in ControlBoardRemapper, ControlBoard_nwc_yarp, and yarp::dev::ImplementVelocityControl.
|
pure virtual |
Get reference acceleration for a subset of joints.
These are the values used during the interpolation of the trajectory.
| n_joint | how many joints this command is referring to |
| joints | list of joints controlled. The size of this array is n_joints |
| accs | pointer to the array containing acceleration values, one value for each joint, the size of the array is n_joints. The first value will be the new reference for the joint joints[0]. for example: n_joint 3 joints 0 2 4 accs 10 30 40 |
Implemented in ControlBoard_nwc_yarp, yarp::dev::ImplementVelocityControl, and ControlBoardRemapper.
|
pure virtual |
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. |
Implemented in ControlBoardRemapper, ControlBoard_nwc_yarp, and yarp::dev::ImplementVelocityControl.
|
pure virtual |
Set reference acceleration for a joint.
This value is used during the trajectory generation.
| j | joint number |
| acc | acceleration value |
Implemented in ControlBoardRemapper, ControlBoard_nwc_yarp, and yarp::dev::ImplementVelocityControl.
|
pure virtual |
Set reference acceleration on all joints.
This is the value that is used during the generation of the trajectory.
| accs | pointer to the array of acceleration values |
Implemented in ControlBoardRemapper, ControlBoard_nwc_yarp, and yarp::dev::ImplementVelocityControl.
|
pure virtual |
Set reference acceleration for a subset of joints.
This is the value that is used during the generation of the trajectory.
| n_joint | how many joints this command is referring to |
| joints | list of joints controlled. The size of this array is n_joints |
| accs | pointer to the array containing acceleration values, one value for each joint, the size of the array is n_joints. The first value will be the new reference for the joint joints[0]. for example: n_joint 3 joints 0 2 4 accs 10 30 40 |
Implemented in ControlBoard_nwc_yarp, yarp::dev::ImplementVelocityControl, and ControlBoardRemapper.
|
pure virtual |
Stop motion, multiple joints.
Implemented in yarp::dev::xHandControlBoard, ControlBoardRemapper, ControlBoard_nwc_yarp, and yarp::dev::ImplementVelocityControl.
|
pure virtual |
Stop motion for a subset of joints.
| n_joint | how many joints this command is referring to |
| joints | joints pointer to the array of joint numbers |
Implemented in ControlBoard_nwc_yarp, yarp::dev::ImplementVelocityControl, yarp::dev::xHandControlBoard, and ControlBoardRemapper.
|
pure virtual |
Stop motion, single joint.
| j | joint number |
Implemented in yarp::dev::xHandControlBoard, ControlBoardRemapper, ControlBoard_nwc_yarp, and yarp::dev::ImplementVelocityControl.
|
pure virtual |
Start motion at a given speed, multiple joints.
| sp | pointer to the array containing the new speed values |
Implemented in yarp::dev::ImplementVelocityControl, yarp::dev::xHandControlBoard, ControlBoardRemapper, and ControlBoard_nwc_yarp.
|
pure virtual |
Start motion at a given speed for a subset of joints.
| n_joint | how many joints this command is referring to |
| joints | of joints controlled. The size of this array is n_joints |
| spds | pointer to the array containing the new speed values, one value for each joint, the size of the array is n_joints. The first value will be the new reference for the joint joints[0]. for example: n_joint 3 joints 0 2 4 spds 10 30 40 |
Implemented in ControlBoard_nwc_yarp, yarp::dev::ImplementVelocityControl, yarp::dev::xHandControlBoard, and ControlBoardRemapper.
|
pure virtual |
Start motion at a given speed, single joint.
| j | joint number |
| sp | speed value |
Implemented in yarp::dev::ImplementVelocityControl, yarp::dev::xHandControlBoard, ControlBoardRemapper, and ControlBoard_nwc_yarp.