Interface for control boards implementing velocity control. More...
#include <yarp/dev/IVelocityControl.h>
Public Member Functions | |
virtual | ~IVelocityControl () |
Destructor. More... | |
virtual bool | getAxes (int *axes)=0 |
Get the number of controlled axes. More... | |
virtual bool | velocityMove (int j, double sp)=0 |
Start motion at a given speed, single joint. More... | |
virtual bool | velocityMove (const double *sp)=0 |
Start motion at a given speed, multiple joints. More... | |
virtual bool | setRefAcceleration (int j, double acc)=0 |
Set reference acceleration for a joint. More... | |
virtual bool | setRefAccelerations (const double *accs)=0 |
Set reference acceleration on all joints. More... | |
virtual bool | getRefAcceleration (int j, double *acc)=0 |
Get reference acceleration for a joint. More... | |
virtual bool | getRefAccelerations (double *accs)=0 |
Get reference acceleration of all joints. More... | |
virtual bool | stop (int j)=0 |
Stop motion, single joint. More... | |
virtual bool | stop ()=0 |
Stop motion, multiple joints. More... | |
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. More... | |
virtual bool | getRefVelocity (const int joint, double *vel) |
Get the last reference speed set by velocityMove for single joint. More... | |
virtual bool | getRefVelocities (double *vels) |
Get the last reference speed set by velocityMove for all joints. More... | |
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. More... | |
virtual bool | setRefAccelerations (const int n_joint, const int *joints, const double *accs)=0 |
Set reference acceleration for a subset of joints. More... | |
virtual bool | getRefAccelerations (const int n_joint, const int *joints, double *accs)=0 |
Get reference acceleration for a subset of joints. More... | |
virtual bool | stop (const int n_joint, const int *joints)=0 |
Stop motion for a subset of joints. More... | |
Interface for control boards implementing velocity control.
Definition at line 159 of file IVelocityControl.h.
|
inlinevirtual |
Destructor.
Definition at line 165 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 yarp::dev::ImplementVelocityControl, RemoteControlBoard, FakeMotor, FakeMotionControl, FakeBot, ControlBoardWrapperVelocityControl, and ControlBoardRemapper.
|
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 yarp::dev::ImplementVelocityControl, RemoteControlBoard, FakeMotor, FakeBot, ControlBoardWrapperVelocityControl, and ControlBoardRemapper.
|
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 ControlBoardWrapperVelocityControl, ControlBoardRemapper, yarp::dev::ImplementVelocityControl, RemoteControlBoard, FakeMotor, and FakeBot.
|
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 yarp::dev::ImplementVelocityControl, RemoteControlBoard, FakeMotor, FakeBot, ControlBoardWrapperVelocityControl, and ControlBoardRemapper.
|
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 yarp::dev::ImplementVelocityControl, RemoteControlBoard, ControlBoardWrapperVelocityControl, and ControlBoardRemapper.
Definition at line 264 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 yarp::dev::ImplementVelocityControl, RemoteControlBoard, ControlBoardWrapperVelocityControl, and ControlBoardRemapper.
Definition at line 255 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 yarp::dev::ImplementVelocityControl, RemoteControlBoard, ControlBoardWrapperVelocityControl, and ControlBoardRemapper.
Definition at line 249 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 yarp::dev::ImplementVelocityControl, RemoteControlBoard, FakeMotor, FakeBot, ControlBoardWrapperVelocityControl, and ControlBoardRemapper.
|
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 yarp::dev::ImplementVelocityControl, RemoteControlBoard, FakeMotor, FakeBot, ControlBoardWrapperVelocityControl, and ControlBoardRemapper.
|
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 ControlBoardWrapperVelocityControl, ControlBoardRemapper, yarp::dev::ImplementVelocityControl, RemoteControlBoard, FakeMotor, and FakeBot.
|
pure virtual |
Stop motion, multiple joints.
Implemented in yarp::dev::ImplementVelocityControl, RemoteControlBoard, FakeMotor, FakeBot, ControlBoardWrapperVelocityControl, and ControlBoardRemapper.
|
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 ControlBoardRemapper, yarp::dev::ImplementVelocityControl, FakeMotor, FakeBot, ControlBoardWrapperVelocityControl, and RemoteControlBoard.
|
pure virtual |
Stop motion, single joint.
j | joint number |
Implemented in yarp::dev::ImplementVelocityControl, RemoteControlBoard, FakeMotor, FakeBot, ControlBoardWrapperVelocityControl, and ControlBoardRemapper.
|
pure virtual |
Start motion at a given speed, multiple joints.
sp | pointer to the array containing the new speed values |
Implemented in RemoteControlBoard, ControlBoardWrapperVelocityControl, ControlBoardRemapper, yarp::dev::ImplementVelocityControl, FakeMotor, and FakeBot.
|
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 ControlBoardWrapperVelocityControl, ControlBoardRemapper, yarp::dev::ImplementVelocityControl, RemoteControlBoard, FakeMotor, and FakeBot.
|
pure virtual |
Start motion at a given speed, single joint.
j | joint number |
sp | speed value |
Implemented in RemoteControlBoard, ControlBoardWrapperVelocityControl, ControlBoardRemapper, yarp::dev::ImplementVelocityControl, FakeMotor, and FakeBot.