![]() |
ViSP
2.6.2
|
#include <vpRobot.h>
Public Types | |
enum | vpRobotStateType { STATE_STOP, STATE_VELOCITY_CONTROL, STATE_POSITION_CONTROL, STATE_ACCELERATION_CONTROL } |
enum | vpControlFrameType { REFERENCE_FRAME, ARTICULAR_FRAME, CAMERA_FRAME, MIXT_FRAME } |
Static Public Member Functions | |
static vpColVector | saturateVelocities (const vpColVector &v_in, const vpColVector &v_max, bool verbose=false) |
Static Public Attributes | |
static const vpRobot::vpRobotStateType | defaultEtatRobot = vpRobot::STATE_STOP |
static const vpRobot::vpControlFrameType | defaultFrameRobot = vpRobot::CAMERA_FRAME |
Protected Attributes | |
double | maxTranslationVelocity |
double | maxRotationVelocity |
int | nDof |
vpMatrix | eJe |
int | eJeAvailable |
vpMatrix | fJe |
int | fJeAvailable |
Static Protected Attributes | |
static const double | maxTranslationVelocityDefault = 0.2 |
static const double | maxRotationVelocityDefault = 0.7 |
Robot control frames.
vpRobot::vpRobot | ( | void | ) |
Definition at line 54 of file vpRobot.cpp.
References STATE_STOP.
|
pure virtual |
Get the robot Jacobian expressed in the end-effector frame.
Implemented in vpRobotViper850, vpRobotAfma6, vpSimulatorViper850, vpRobotAfma4, vpSimulatorAfma6, vpRobotSimulator, vpRobotBiclops, vpRobotPtu46, vpRobotPioneer, vpRobotCamera, and vpRobotTemplate.
|
pure virtual |
Get the robot Jacobian expressed in the robot reference (or world) frame.
Implemented in vpRobotViper850, vpRobotAfma6, vpSimulatorViper850, vpRobotAfma4, vpSimulatorAfma6, vpRobotSimulator, vpRobotBiclops, vpRobotPtu46, vpRobotCamera, and vpRobotTemplate.
|
pure virtual |
Get a displacement expressed in the joint space between two successive position control.
Implemented in vpRobotViper850, vpRobotAfma6, vpRobotAfma4, vpSimulatorViper850, vpSimulatorAfma6, vpRobotSimulator, vpRobotBiclops, vpRobotPtu46, vpRobotCamera, and vpRobotTemplate.
|
pure virtual |
Get a displacement expressed in the camera frame between two successive position control.
Implemented in vpRobotViper850, vpRobotAfma6, vpRobotAfma4, vpSimulatorViper850, vpSimulatorAfma6, vpRobotSimulator, vpRobotBiclops, vpRobotPtu46, vpRobotCamera, and vpRobotTemplate.
|
pure virtual |
Get a displacement (frame as to ve specified) between two successive position control.
Implemented in vpRobotViper850, vpRobotAfma6, vpRobotAfma4, vpSimulatorViper850, vpSimulatorAfma6, vpRobotSimulator, vpRobotBiclops, vpRobotPtu46, vpRobotCamera, and vpRobotTemplate.
double vpRobot::getMaxRotationVelocity | ( | void | ) | const |
Get the maximal rotation velocity that can be sent to the robot during a velocity control.
Definition at line 233 of file vpRobot.cpp.
Referenced by vpSimulatorAfma6::computeArticularVelocity(), vpSimulatorViper850::computeArticularVelocity(), vpSimulatorAfma6::findHighestPositioningSpeed(), vpSimulatorViper850::findHighestPositioningSpeed(), vpSimulatorAfma6::setPosition(), vpRobotPioneer::setVelocity(), vpSimulatorAfma6::setVelocity(), vpSimulatorViper850::setVelocity(), vpRobotAfma4::setVelocity(), vpRobotAfma6::setVelocity(), and vpRobotViper850::setVelocity().
double vpRobot::getMaxTranslationVelocity | ( | void | ) | const |
Get the maximal translation velocity that can be sent to the robot during a velocity control.
Definition at line 208 of file vpRobot.cpp.
Referenced by vpSimulatorAfma6::setPosition(), vpRobotPioneer::setVelocity(), vpSimulatorAfma6::setVelocity(), vpSimulatorViper850::setVelocity(), vpRobotAfma4::setVelocity(), vpRobotAfma6::setVelocity(), and vpRobotViper850::setVelocity().
|
pure virtual |
Get the robot position (frame has to be specified).
Implemented in vpRobotViper850, vpRobotAfma6, vpSimulatorViper850, vpRobotAfma4, vpSimulatorAfma6, vpRobotBiclops, vpRobotPtu46, vpRobotCamera, and vpRobotTemplate.
vpColVector vpRobot::getPosition | ( | const vpRobot::vpControlFrameType | frame | ) |
Return the robot position (frame has to be specified).
Recupere la position actuelle du robot. Recupere la position actuelle du robot et renvoie le resultat Le repere de travail dans lequel est exprime le resultat est celui donne par la variable repere. INPUT:
Definition at line 176 of file vpRobot.cpp.
|
inline |
Definition at line 147 of file vpRobot.h.
Referenced by vpSimulatorAfma6::computeArticularVelocity(), and vpSimulatorViper850::computeArticularVelocity().
|
inlinevirtual |
Definition at line 148 of file vpRobot.h.
Referenced by vpRobotBiclops::getPosition(), vpRobotBiclops::getVelocity(), vpRobotPtu46::setPosition(), vpRobotBiclops::setPosition(), vpSimulatorAfma6::setPosition(), vpRobotAfma4::setPosition(), vpSimulatorViper850::setPosition(), vpRobotAfma6::setPosition(), vpRobotViper850::setPosition(), vpRobotPtu46::setRobotState(), vpRobotBiclops::setRobotState(), vpSimulatorAfma6::setRobotState(), vpSimulatorViper850::setRobotState(), vpRobotAfma4::setRobotState(), vpRobotAfma6::setRobotState(), vpRobotViper850::setRobotState(), vpRobotPtu46::setVelocity(), vpRobotBiclops::setVelocity(), vpSimulatorAfma6::setVelocity(), vpSimulatorViper850::setVelocity(), vpRobotAfma4::setVelocity(), vpRobotAfma6::setVelocity(), vpRobotViper850::setVelocity(), vpSimulatorAfma6::stopMotion(), vpSimulatorViper850::stopMotion(), and vpRobotViper850::stopMotion().
|
pure virtual |
Implemented in vpRobotSimulator, vpRobotViper850, vpSimulatorViper850, vpRobotAfma6, vpSimulatorAfma6, vpRobotAfma4, vpRobotBiclops, vpRobotPioneer, vpRobotPtu46, vpRobotCamera, and vpRobotTemplate.
|
static |
Saturate velocities.
v_in | : Vector of input velocities to saturate. Translation velocities should be expressed in m/s while rotation velocities in rad/s. |
v_max | : Vector of maximal allowed velocities. Maximal translation velocities should be expressed in m/s while maximal rotation velocities in rad/s. |
verbose | : Print a message indicating which axis causes the saturation. |
vpRobotException::dimensionError | : If the input vectors have different dimensions. |
The code below shows how to use this static method in order to saturate a velocity skew vector.
Definition at line 114 of file vpRobot.cpp.
References vpException::dimensionError, and vpColVector::size().
Referenced by vpRobotPioneer::setVelocity(), vpRobotAfma4::setVelocity(), vpRobotAfma6::setVelocity(), and vpRobotViper850::setVelocity().
void vpRobot::setMaxRotationVelocity | ( | const double | maxVr | ) |
Set the maximal rotation velocity that can be sent to the robot during a velocity control.
maxVr | : Maximum rotation velocity expressed in rad/s. |
Definition at line 220 of file vpRobot.cpp.
Referenced by vpSimulatorAfma6::setPosition().
void vpRobot::setMaxTranslationVelocity | ( | const double | maxVt | ) |
Set the maximal translation velocity that can be sent to the robot during a velocity control.
maxVt | : Maximum translation velocity expressed in m/s. |
Definition at line 196 of file vpRobot.cpp.
Referenced by vpSimulatorAfma6::setPosition().
|
pure virtual |
Set a displacement (frame has to be specified) in position control.
Implemented in vpRobotViper850, vpRobotAfma6, vpRobotAfma4, vpSimulatorViper850, vpSimulatorAfma6, vpRobotBiclops, vpRobotPtu46, vpRobotCamera, and vpRobotTemplate.
vpRobot::vpControlFrameType vpRobot::setRobotFrame | ( | vpRobot::vpControlFrameType | newFrame | ) |
Definition at line 159 of file vpRobot.cpp.
Referenced by vpSimulatorAfma6::init(), vpSimulatorViper850::init(), vpSimulatorAfma6::setVelocity(), and vpSimulatorViper850::setVelocity().
|
virtual |
Reimplemented in vpRobotViper850, vpRobotAfma6, vpRobotAfma4, vpSimulatorViper850, vpSimulatorAfma6, vpRobotBiclops, and vpRobotPtu46.
Definition at line 152 of file vpRobot.cpp.
Referenced by vpRobotPtu46::setRobotState(), vpRobotBiclops::setRobotState(), vpSimulatorAfma6::setRobotState(), vpSimulatorViper850::setRobotState(), vpRobotAfma4::setRobotState(), vpRobotAfma6::setRobotState(), and vpRobotViper850::setRobotState().
|
pure virtual |
Set the velocity (frame has to be specified) that will be applied to the velocity controller.
Implemented in vpRobotViper850, vpRobotAfma6, vpRobotAfma4, vpSimulatorViper850, vpSimulatorAfma6, vpRobotSimulator, vpRobotBiclops, vpRobotPtu46, vpRobotPioneer, vpRobotCamera, and vpRobotTemplate.
|
static |
|
static |
|
protected |
robot Jacobian expressed in the end-effector frame
Definition at line 113 of file vpRobot.h.
Referenced by vpSimulatorAfma6::computeArticularVelocity(), vpSimulatorViper850::computeArticularVelocity(), vpRobotCamera::get_eJe(), vpSimulatorAfma6::getVelocity(), vpSimulatorViper850::getVelocity(), vpRobotCamera::init(), vpSimulatorAfma6::setPosition(), and vpRobotAfma4::setVelocity().
|
protected |
|
protected |
robot Jacobian expressed in the robot reference frame available
Definition at line 117 of file vpRobot.h.
Referenced by vpSimulatorAfma6::computeArticularVelocity(), vpSimulatorViper850::computeArticularVelocity(), vpSimulatorAfma6::getVelocity(), and vpSimulatorViper850::getVelocity().
|
protected |
|
staticprotected |
|
staticprotected |