Interface for control boards implementing velocity control. More...
#include <yarp/dev/IVelocityControl.h>
Public Member Functions | |
virtual | ~IVelocityControl () |
Destructor. | |
virtual bool | getAxes (int *axes)=0 |
Get the number of controlled axes. | |
virtual bool | velocityMove (int j, double sp)=0 |
Start motion at a given speed, single joint. | |
virtual bool | velocityMove (const double *sp)=0 |
Start motion at a given speed, multiple joints. | |
virtual bool | setRefAcceleration (int j, double acc)=0 |
Set reference acceleration for a joint. | |
virtual bool | setRefAccelerations (const double *accs)=0 |
Set reference acceleration on all joints. | |
virtual bool | getRefAcceleration (int j, double *acc)=0 |
Get reference acceleration for a joint. | |
virtual bool | getRefAccelerations (double *accs)=0 |
Get reference acceleration of all joints. | |
virtual bool | stop (int j)=0 |
Stop motion, single joint. | |
virtual bool | stop ()=0 |
Stop motion, multiple joints. | |
virtual bool | velocityMove (const int n_joint, const int *joints, const double *spds)=0 |
Start motion at a given speed for a subset of joints. | |
virtual bool | getRefVelocity (const int joint, double *vel) |
Get the last reference speed set by velocityMove for single joint. | |
virtual bool | getRefVelocities (double *vels) |
Get the last reference speed set by velocityMove for all joints. | |
virtual bool | getRefVelocities (const int n_joint, const int *joints, double *vels) |
Get the last reference speed set by velocityMove for a group of joints. | |
virtual bool | setRefAccelerations (const int n_joint, const int *joints, const double *accs)=0 |
Set reference acceleration for a subset of joints. | |
virtual bool | getRefAccelerations (const int n_joint, const int *joints, double *accs)=0 |
Get reference acceleration for a subset of joints. | |
virtual bool | 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 154 of file IVelocityControl.h.
|
inlinevirtual |
Destructor.
Definition at line 160 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. parame axes pointer to storage
Implemented in ControlBoardRemapper, FakeBot, FakeLaserWithMotor, FakeMotionControl, RemoteControlBoard, 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, FakeBot, RemoteControlBoard, 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 FakeBot, RemoteControlBoard, 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, FakeBot, RemoteControlBoard, and yarp::dev::ImplementVelocityControl.
|
inlinevirtual |
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 in ControlBoardRemapper, RemoteControlBoard, and yarp::dev::ImplementVelocityControl.
Definition at line 259 of file IVelocityControl.h.
|
inlinevirtual |
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 in ControlBoardRemapper, RemoteControlBoard, and yarp::dev::ImplementVelocityControl.
Definition at line 250 of file IVelocityControl.h.
|
inlinevirtual |
Get the last reference speed set by velocityMove for single joint.
j | joint number |
vel | returns the requested reference. |
Reimplemented in ControlBoardRemapper, RemoteControlBoard, and yarp::dev::ImplementVelocityControl.
Definition at line 244 of file IVelocityControl.h.
|
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, FakeBot, RemoteControlBoard, and yarp::dev::ImplementVelocityControl.
|
pure virtual |
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 |
Implemented in ControlBoardRemapper, FakeBot, RemoteControlBoard, and yarp::dev::ImplementVelocityControl.
|
pure virtual |
Set reference acceleration for a subset of joints.
This is the valure 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 FakeBot, RemoteControlBoard, yarp::dev::ImplementVelocityControl, and ControlBoardRemapper.
|
pure virtual |
Stop motion, multiple joints.
Implemented in ControlBoardRemapper, FakeBot, RemoteControlBoard, 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 RemoteControlBoard, FakeBot, yarp::dev::ImplementVelocityControl, and ControlBoardRemapper.
|
pure virtual |
Stop motion, single joint.
j | joint number |
Implemented in ControlBoardRemapper, FakeBot, RemoteControlBoard, 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 FakeBot, yarp::dev::ImplementVelocityControl, ControlBoardRemapper, and RemoteControlBoard.
|
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 FakeBot, RemoteControlBoard, yarp::dev::ImplementVelocityControl, and ControlBoardRemapper.
|
pure virtual |
Start motion at a given speed, single joint.
j | joint number |
sp | speed value |
Implemented in FakeBot, yarp::dev::ImplementVelocityControl, ControlBoardRemapper, and RemoteControlBoard.