![]() |
Visual Servoing Platform version 3.7.0
|
#include <vpRobotUniversalRobots.h>
Public Types | |
| enum | vpRobotStateType { STATE_STOP , STATE_VELOCITY_CONTROL , STATE_POSITION_CONTROL , STATE_ACCELERATION_CONTROL , STATE_FORCE_TORQUE_CONTROL } |
| enum | vpControlFrameType { REFERENCE_FRAME , ARTICULAR_FRAME , JOINT_STATE = ARTICULAR_FRAME , END_EFFECTOR_FRAME , CAMERA_FRAME , TOOL_FRAME = CAMERA_FRAME , MIXT_FRAME } |
Public Member Functions | |
| vpRobotUniversalRobots () | |
| vpRobotUniversalRobots (const std::string &ur_address) | |
| virtual | ~vpRobotUniversalRobots () |
| void | connect (const std::string &ur_address) |
| void | disconnect () |
| std::shared_ptr< ur_rtde::RTDEReceiveInterface > | getRTDEReceiveInterfaceHandler () const |
| std::shared_ptr< ur_rtde::RTDEControlInterface > | getRTDEControlInterfaceHandler () const |
| std::shared_ptr< ur_rtde::DashboardClient > | getDashboardClientHandler () const |
| vpHomogeneousMatrix | get_fMe () |
| vpHomogeneousMatrix | get_fMe (const vpColVector &q) |
| vpHomogeneousMatrix | get_fMc () |
| vpHomogeneousMatrix | get_eMc () const |
| void | getForceTorque (const vpRobot::vpControlFrameType frame, vpColVector &force) |
| std::string | getPolyScopeVersion () |
| void | getPosition (const vpRobot::vpControlFrameType frame, vpColVector &position) VP_OVERRIDE |
| void | getPosition (const vpRobot::vpControlFrameType frame, vpPoseVector &pose) |
| int | getRobotMode () const |
| std::string | getRobotModel () const |
| void | move (const std::string &filename, double velocity_percentage=10.) |
| bool | readPosFile (const std::string &filename, vpColVector &q) |
| bool | savePosFile (const std::string &filename, const vpColVector &q) |
| void | setPosition (const vpRobot::vpControlFrameType frame, const vpColVector &position) VP_OVERRIDE |
| void | setPosition (const vpRobot::vpControlFrameType frame, const vpPoseVector &pose) |
| void | setPositioningVelocity (double velocity) |
| vpRobot::vpRobotStateType | setRobotState (vpRobot::vpRobotStateType newState) |
| void | setVelocity (const vpRobot::vpControlFrameType frame, const vpColVector &vel) VP_OVERRIDE |
| void | set_eMc (const vpHomogeneousMatrix &eMc) |
| void | stopMotion () |
Inherited functionalities from vpRobot | |
| double | getMaxTranslationVelocity (void) const |
| double | getMaxRotationVelocity (void) const |
| int | getNDof () const |
| vpColVector | getPosition (const vpRobot::vpControlFrameType frame) |
| virtual vpRobotStateType | getRobotState (void) const |
| void | setMaxRotationVelocity (double maxVr) |
| void | setMaxTranslationVelocity (double maxVt) |
| void | setVerbose (bool verbose) |
Static Public Member Functions | |
Static Public Member Functions inherited from vpRobot | |
| static vpColVector | saturateVelocities (const vpColVector &v_in, const vpColVector &v_max, bool verbose=false) |
Protected Member Functions | |
| void | init () |
Protected Member Functions Inherited from vpRobot | |
| vpControlFrameType | setRobotFrame (vpRobot::vpControlFrameType newFrame) |
| vpControlFrameType | getRobotFrame (void) const |
Protected Attributes | |
| std::shared_ptr< ur_rtde::RTDEReceiveInterface > | m_rtde_receive |
| std::shared_ptr< ur_rtde::RTDEControlInterface > | m_rtde_control |
| std::shared_ptr< ur_rtde::DashboardClient > | m_db_client |
| vpHomogeneousMatrix | m_eMc |
| double | m_positioningVelocity |
| double | m_max_joint_speed |
| double | m_max_joint_acceleration |
| double | m_max_linear_speed |
| double | m_max_linear_acceleration |
| vpRobot::vpControlFrameType | m_vel_control_frame |
| double | maxTranslationVelocity |
| double | maxRotationVelocity |
| int | nDof |
| vpMatrix | eJe |
| int | eJeAvailable |
| vpMatrix | fJe |
| int | fJeAvailable |
| int | areJointLimitsAvailable |
| double * | qmin |
| double * | qmax |
| bool | verbose_ |
Static Protected Attributes | |
| static const double | maxTranslationVelocityDefault = 0.2 |
| static const double | maxRotationVelocityDefault = 0.7 |
Tutorials
If you are interested in using performing visual servoing using a robot from Universal Robots, you may have a look at:
Definition at line 64 of file vpRobotUniversalRobots.h.
|
inherited |
Robot control frames.
| Enumerator | |
|---|---|
| REFERENCE_FRAME | Corresponds to a fixed reference frame attached to the robot structure. |
| ARTICULAR_FRAME | Corresponds to the joint state. This value is deprecated. You should rather use vpRobot::JOINT_STATE. |
| JOINT_STATE | Corresponds to the joint state. |
| END_EFFECTOR_FRAME | Corresponds to robot end-effector frame. |
| CAMERA_FRAME | Corresponds to a frame attached to the camera mounted on the robot end-effector. |
| TOOL_FRAME | Corresponds to a frame attached to the tool (camera, gripper...) mounted on the robot end-effector. This value is equal to vpRobot::CAMERA_FRAME. |
| MIXT_FRAME | Corresponds to a "virtual" frame where translations are expressed in the reference frame, and rotations in the camera frame. |
|
inherited |
Robot control states.
| BEGIN_VISP_NAMESPACE vpRobotUniversalRobots::vpRobotUniversalRobots | ( | ) |
Default constructor.
Definition at line 49 of file vpRobotUniversalRobots.cpp.
References init(), m_db_client, m_eMc, m_rtde_control, and m_rtde_receive.
| vpRobotUniversalRobots::vpRobotUniversalRobots | ( | const std::string & | ur_address | ) |
Establishes a connection with the robot and
| [in] | ur_address | IP/hostname of the robot. |
Definition at line 67 of file vpRobotUniversalRobots.cpp.
References connect(), init(), m_eMc, m_rtde_control, and m_rtde_receive.
|
virtual |
Destructor that shut down the connexion with the robot.
Definition at line 57 of file vpRobotUniversalRobots.cpp.
References setRobotState(), and vpRobot::STATE_STOP.
| void vpRobotUniversalRobots::connect | ( | const std::string & | ur_address | ) |
Establishes a connection with the robot and set default behavior.
| [in] | ur_address | IP/hostname of the robot. |
| vpException::fatalError | : When connexion cannot be established. |
Definition at line 80 of file vpRobotUniversalRobots.cpp.
References vpException::fatalError, m_db_client, m_rtde_control, and m_rtde_receive.
Referenced by vpRobotUniversalRobots().
| void vpRobotUniversalRobots::disconnect | ( | ) |
Disconnect the robot interfaces.
Definition at line 114 of file vpRobotUniversalRobots.cpp.
References m_db_client, m_rtde_control, and m_rtde_receive.
| vpHomogeneousMatrix vpRobotUniversalRobots::get_eMc | ( | ) | const |
Return the
homogeneous transformation that gives the position of the camera frame (or in general of any tool frame) in the robot end-effector frame.
By default, this transformation is set to identity, meaning that the camera (or tool) frame is located on the end-effector.
To change the position of the camera (or tool) frame on the end-effector frame, use set_eMc().
Definition at line 242 of file vpRobotUniversalRobots.cpp.
References m_eMc.
Referenced by getForceTorque().
| vpHomogeneousMatrix vpRobotUniversalRobots::get_fMc | ( | ) |
Given the current joint position of the robot, computes the forward kinematics (direct geometric model) as an homogeneous matrix
that gives the position of the camera frame (or in general of any tool attached to the robot) in the robot base frame.
By default, the transformation
that corresponds to the transformation between the end-effector and the camera (or tool) frame is set to identity, meaning that the camera (or tool) frame is located on the end-effector.
To change the position of the camera (or tool) frame, use set_eMc().
Definition at line 211 of file vpRobotUniversalRobots.cpp.
References vpRobot::CAMERA_FRAME, and getPosition().
| vpHomogeneousMatrix vpRobotUniversalRobots::get_fMe | ( | ) |
Given the current joint position of the robot, computes the forward kinematics (direct geometric model) as an homogeneous matrix
that gives the position of the end-effector in the robot base frame.
As described here the end-effector position could be modified setting the Tool Center Point (TCP). When TCP translations and rotations are set to 0, the end-effector corresponds to the robot flange position.
Definition at line 152 of file vpRobotUniversalRobots.cpp.
References vpRobot::END_EFFECTOR_FRAME, and getPosition().
Referenced by setVelocity().
| vpHomogeneousMatrix vpRobotUniversalRobots::get_fMe | ( | const vpColVector & | q | ) |
Given a joint position of the robot, computes the forward kinematics (direct geometric model) as an homogeneous matrix
that gives the position of the end-effector in the robot base frame.
As described here the end-effector position could be modified setting the Tool Center Point (TCP). When TCP translations and rotations are set to 0, the end-effector corresponds to the robot flange position.
| [in] | q | : Joint position as a 6-dim vector |
Definition at line 172 of file vpRobotUniversalRobots.cpp.
References vpException::fatalError, m_rtde_control, m_rtde_receive, vpArray2D< Type >::size(), and vpColVector::toStdVector().
|
inline |
Return handler to DashboardClient.
Definition at line 93 of file vpRobotUniversalRobots.h.
References m_db_client.
| void vpRobotUniversalRobots::getForceTorque | ( | const vpRobot::vpControlFrameType | frame, |
| vpColVector & | force ) |
Get robot force torque.
| [in] | frame | : Type of forces and torques to retrieve. Admissible values are:
|
| [out] | force | : Measured forced and torques. |
Definition at line 253 of file vpRobotUniversalRobots.cpp.
References vpRobot::END_EFFECTOR_FRAME, vpException::fatalError, get_eMc(), vpHomogeneousMatrix::inverse(), vpRobot::JOINT_STATE, m_rtde_receive, and vpRobot::TOOL_FRAME.
|
inherited |
Get the maximal rotation velocity that can be sent to the robot during a velocity control.
Definition at line 272 of file vpRobot.cpp.
References maxRotationVelocity.
Referenced by vpSimulatorAfma6::computeArticularVelocity(), vpSimulatorViper850::computeArticularVelocity(), vpSimulatorAfma6::findHighestPositioningSpeed(), vpSimulatorViper850::findHighestPositioningSpeed(), getDisplacement(), vpRobotPololuPtu::setPosition(), vpSimulatorAfma6::setPosition(), vpRobotAfma6::setVelocity(), vpRobotCamera::setVelocity(), vpRobotFlirPtu::setVelocity(), vpRobotFranka::setVelocity(), vpRobotKinova::setVelocity(), vpRobotPioneer::setVelocity(), vpRobotPololuPtu::setVelocity(), vpRobotTemplate::setVelocity(), vpRobotUniversalRobots::setVelocity(), vpRobotViper650::setVelocity(), vpRobotViper850::setVelocity(), vpSimulatorAfma6::setVelocity(), vpSimulatorCamera::setVelocity(), vpSimulatorPioneer::setVelocity(), vpSimulatorPioneerPan::setVelocity(), and vpSimulatorViper850::setVelocity().
|
inherited |
Get the maximal translation velocity that can be sent to the robot during a velocity control.
Definition at line 250 of file vpRobot.cpp.
References maxTranslationVelocity.
Referenced by getDisplacement(), vpSimulatorAfma6::setPosition(), vpRobotAfma6::setVelocity(), vpRobotCamera::setVelocity(), vpRobotFlirPtu::setVelocity(), vpRobotFranka::setVelocity(), vpRobotKinova::setVelocity(), vpRobotPioneer::setVelocity(), vpRobotTemplate::setVelocity(), vpRobotUniversalRobots::setVelocity(), vpRobotViper650::setVelocity(), vpRobotViper850::setVelocity(), vpSimulatorAfma6::setVelocity(), vpSimulatorCamera::setVelocity(), vpSimulatorPioneer::setVelocity(), vpSimulatorPioneerPan::setVelocity(), and vpSimulatorViper850::setVelocity().
|
inlineinherited |
| std::string vpRobotUniversalRobots::getPolyScopeVersion | ( | ) |
Return PolyScope version.
Definition at line 286 of file vpRobotUniversalRobots.cpp.
References vpException::fatalError, and m_db_client.
|
inherited |
Return the current robot position in the specified frame.
Definition at line 215 of file vpRobot.cpp.
References getPosition().
|
virtual |
Get robot position.
| [in] | frame | : Type of position to retrieve. Admissible values are:
|
| [out] | position | : Robot position. When joint position is asked this vector is 6-dim. Otherwise for a cartesian position this vector is also 6-dim. Its content is similar to a vpPoseVector, with first the 3 tranlations in meter and then the 3 orientations in radian as a |
If you want to get a cartesian position, use rather getPosition(const vpRobot::vpControlFrameType, vpPoseVector &)
Implements vpRobot.
Definition at line 308 of file vpRobotUniversalRobots.cpp.
References vpRobot::END_EFFECTOR_FRAME, vpException::fatalError, vpRobot::JOINT_STATE, m_eMc, m_rtde_receive, vpColVector::resize(), and vpRobot::TOOL_FRAME.
Referenced by get_fMc(), get_fMe(), and getPosition().
| void vpRobotUniversalRobots::getPosition | ( | const vpRobot::vpControlFrameType | frame, |
| vpPoseVector & | pose ) |
Get robot cartesian position.
| [in] | frame | : Type of cartesian position to retrieve. Admissible values are:
|
| [out] | pose | : Robot cartesian position. This vector is 6-dim with first the 3 tranlations in meter and then the 3 orientations in radian as a |
Definition at line 364 of file vpRobotUniversalRobots.cpp.
References vpRobot::END_EFFECTOR_FRAME, vpException::fatalError, getPosition(), vpRobot::JOINT_STATE, m_rtde_receive, and vpRobot::TOOL_FRAME.
|
inlineprotectedinherited |
Definition at line 180 of file vpRobot.h.
Referenced by vpSimulatorAfma6::computeArticularVelocity(), and vpSimulatorViper850::computeArticularVelocity().
| int vpRobotUniversalRobots::getRobotMode | ( | ) | const |
Get and return robot mode. Available robot modes are described here.
Definition at line 403 of file vpRobotUniversalRobots.cpp.
References vpException::fatalError, and m_rtde_receive.
| std::string vpRobotUniversalRobots::getRobotModel | ( | ) | const |
Get and return robot model as a string like "UR5", "UR10"...
Definition at line 392 of file vpRobotUniversalRobots.cpp.
References vpException::fatalError, and m_db_client.
|
inlinevirtualinherited |
Definition at line 152 of file vpRobot.h.
Referenced by vpRobotBiclops::getPosition(), vpRobotBiclops::getVelocity(), vpRobotAfma6::setPosition(), vpRobotBiclops::setPosition(), vpRobotCamera::setPosition(), vpRobotFranka::setPosition(), vpRobotPololuPtu::setPosition(), vpRobotPtu46::setPosition(), vpRobotUniversalRobots::setPosition(), vpRobotViper650::setPosition(), vpRobotViper850::setPosition(), vpSimulatorAfma6::setPosition(), vpSimulatorCamera::setPosition(), vpSimulatorViper850::setPosition(), vpRobotAfma6::setRobotState(), vpRobotBiclops::setRobotState(), vpRobotFlirPtu::setRobotState(), vpRobotFranka::setRobotState(), vpRobotPololuPtu::setRobotState(), vpRobotPtu46::setRobotState(), vpRobotUniversalRobots::setRobotState(), vpRobotViper650::setRobotState(), vpRobotViper850::setRobotState(), vpSimulatorAfma6::setRobotState(), vpSimulatorViper850::setRobotState(), vpRobotAfma6::setVelocity(), vpRobotBiclops::setVelocity(), vpRobotCamera::setVelocity(), vpRobotFlirPtu::setVelocity(), vpRobotFranka::setVelocity(), vpRobotKinova::setVelocity(), vpRobotPololuPtu::setVelocity(), vpRobotPtu46::setVelocity(), vpRobotTemplate::setVelocity(), vpRobotUniversalRobots::setVelocity(), vpRobotViper650::setVelocity(), vpRobotViper850::setVelocity(), vpSimulatorAfma6::setVelocity(), vpSimulatorCamera::setVelocity(), vpSimulatorPioneer::setVelocity(), vpSimulatorPioneerPan::setVelocity(), vpSimulatorViper850::setVelocity(), vpRobotFlirPtu::stopMotion(), vpRobotFranka::stopMotion(), vpRobotViper650::stopMotion(), vpRobotViper850::stopMotion(), vpSimulatorAfma6::stopMotion(), and vpSimulatorViper850::stopMotion().
|
inline |
Return handler to RTDEControlInterface.
Definition at line 88 of file vpRobotUniversalRobots.h.
References m_rtde_control.
|
inline |
Return handler to RTDEReceiveInterface.
Definition at line 83 of file vpRobotUniversalRobots.h.
References m_rtde_receive.
|
protectedvirtual |
Initialize internal vars.
Implements vpRobot.
Definition at line 130 of file vpRobotUniversalRobots.cpp.
References vpRobot::JOINT_STATE, m_max_joint_acceleration, m_max_joint_speed, m_max_linear_acceleration, m_max_linear_speed, m_positioningVelocity, m_vel_control_frame, vpRobot::nDof, and vpMath::rad().
Referenced by vpRobotUniversalRobots(), and vpRobotUniversalRobots().
| void vpRobotUniversalRobots::move | ( | const std::string & | filename, |
| double | velocity_percentage = 10. ) |
Moves the robot to the joint position specified in the filename. The positioning velocity is set to 10% of the robot maximal velocity.
| [in] | filename | : File containing a joint position to reach. |
| [in] | velocity_percentage | : Velocity percentage. Values in range [1, 100]. |
Definition at line 689 of file vpRobotUniversalRobots.cpp.
References vpRobot::JOINT_STATE, readPosFile(), setPosition(), setPositioningVelocity(), setRobotState(), and vpRobot::STATE_POSITION_CONTROL.
| bool vpRobotUniversalRobots::readPosFile | ( | const std::string & | filename, |
| vpColVector & | q ) |
Read joint positions in a specific Franka position file.
This position file has to start with a header. The seven joint positions are given after the "R:" keyword and are expressed in degres to be more representative for the user. Theses values are then converted in radians in q. The character "#" starting a line indicates a comment.
A typical content of such a file is given below:
| [in] | filename | : Name of the position file to read. |
| [out] | q | : 6-dim joint positions: q1 q2 q3 q4 q5 q6 with values expressed in radians. |
The code below shows how to read a position from a file and move the robot to this position.
Definition at line 736 of file vpRobotUniversalRobots.cpp.
References vpRobot::nDof, vpMath::rad(), vpColVector::resize(), and vpIoTools::splitChain().
Referenced by move().
|
staticinherited |
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 162 of file vpRobot.cpp.
References vpException::dimensionError, and vpArray2D< Type >::size().
Referenced by vpRobotAfma6::setVelocity(), vpRobotCamera::setVelocity(), vpRobotFlirPtu::setVelocity(), vpRobotFranka::setVelocity(), vpRobotKinova::setVelocity(), vpRobotPioneer::setVelocity(), vpRobotTemplate::setVelocity(), vpRobotUniversalRobots::setVelocity(), vpRobotViper650::setVelocity(), vpRobotViper850::setVelocity(), vpSimulatorCamera::setVelocity(), vpSimulatorPioneer::setVelocity(), and vpSimulatorPioneerPan::setVelocity().
| bool vpRobotUniversalRobots::savePosFile | ( | const std::string & | filename, |
| const vpColVector & | q ) |
Save joint positions in a specific Panda position file.
This position file starts with a header on the first line. After convertion of the rotations in degrees, the joint position q is written on a line starting with the keyword "R: ". See readPosFile() documentation for an example of such a file.
| [in] | filename | : Name of the position file to create. |
| [in] | q | : Joint positions vector to save in the filename with values expressed in radians. |
Definition at line 814 of file vpRobotUniversalRobots.cpp.
References vpMath::deg().
| void vpRobotUniversalRobots::set_eMc | ( | const vpHomogeneousMatrix & | eMc | ) |
Set the
homogeneous transformation that gives the position of the camera frame (or in general of any tool frame) in the robot end-effector frame.
By default, this transformation is set to identity, meaning that the camera (or tool) frame is located on the end-effector.
This transformation has to be set before controlling the robot cartesian velocity in the camera frame or getting the position of the robot in the camera frame.
| [in] | eMc | : End-effector to camera frame transformation. |
Definition at line 230 of file vpRobotUniversalRobots.cpp.
References m_eMc.
|
inherited |
Set the maximal rotation velocity that can be sent to the robot during a velocity control.
| w_max | : Maximum rotational velocity expressed in rad/s. |
Definition at line 259 of file vpRobot.cpp.
References maxRotationVelocity.
Referenced by init(), vpRobotViper650::setMaxRotationVelocity(), vpRobotViper850::setMaxRotationVelocity(), and vpSimulatorAfma6::setPosition().
|
inherited |
Set the maximal translation velocity that can be sent to the robot during a velocity control.
| v_max | : Maximum translation velocity expressed in m/s. |
Definition at line 238 of file vpRobot.cpp.
References maxTranslationVelocity.
Referenced by init(), and vpSimulatorAfma6::setPosition().
|
virtual |
Set robot position. This function is blocking; it returns when the desired position is reached.
| [in] | position | : A 6-dim vector vector corresponding to the position to reach. All the positions are expressed in meters for the translations and radians for the rotations. |
| [in] | frame | : Frame in which the position is expressed.
|
Implements vpRobot.
Definition at line 456 of file vpRobotUniversalRobots.cpp.
References vpRobot::CAMERA_FRAME, vpRobot::END_EFFECTOR_FRAME, vpColVector::extract(), vpException::fatalError, vpException::functionNotImplementedError, vpRobot::getRobotState(), vpRobot::JOINT_STATE, m_eMc, m_max_joint_speed, m_max_linear_speed, m_positioningVelocity, m_rtde_control, m_rtde_receive, setRobotState(), vpArray2D< Type >::size(), vpRobot::STATE_POSITION_CONTROL, vpColVector::toStdVector(), and vpPoseVector::toStdVector().
Referenced by move(), and setPosition().
| void vpRobotUniversalRobots::setPosition | ( | const vpRobot::vpControlFrameType | frame, |
| const vpPoseVector & | pose ) |
Set robot cartesian position. This function is blocking; it returns when the desired position is reached.
| [in] | pose | : A 6-dim vector vector corresponding to the position to reach. All the positions are expressed in meters for the translations and radians for the rotations. |
| [in] | frame | : Frame in which the position is expressed.
|
Definition at line 433 of file vpRobotUniversalRobots.cpp.
References vpException::fatalError, vpRobot::JOINT_STATE, and setPosition().
| void vpRobotUniversalRobots::setPositioningVelocity | ( | double | velocity | ) |
Set the maximal velocity percentage to use for a position control.
| [in] | velocity | : Percentage of the maximal velocity. Values should be in ]0:100]. |
Definition at line 418 of file vpRobotUniversalRobots.cpp.
References m_positioningVelocity.
Referenced by move().
|
protectedinherited |
Definition at line 206 of file vpRobot.cpp.
Referenced by vpSimulatorAfma6::init(), vpSimulatorViper850::init(), vpSimulatorAfma6::setVelocity(), vpSimulatorCamera::setVelocity(), vpSimulatorPioneer::setVelocity(), vpSimulatorPioneerPan::setVelocity(), and vpSimulatorViper850::setVelocity().
|
virtual |
Change the robot state.
| [in] | newState | : New requested robot state. |
Reimplemented from vpRobot.
Definition at line 841 of file vpRobotUniversalRobots.cpp.
References vpException::fatalError, vpRobot::getRobotState(), m_rtde_control, vpRobot::setRobotState(), vpRobot::STATE_POSITION_CONTROL, vpRobot::STATE_STOP, and vpRobot::STATE_VELOCITY_CONTROL.
Referenced by move(), setPosition(), stopMotion(), and ~vpRobotUniversalRobots().
|
virtual |
Apply a velocity to the robot.
| [in] | frame | : Control frame in which the velocity is expressed. Velocities could be expressed in joint state, robot base frame, end-effector frame or camera frame. |
| [in] | vel | : Velocity vector. Translation velocities are expressed in m/s while rotation velocities in rad/s. The size of this vector is always 6. |
| vpRobotException::wrongStateError | : If a the robot is not configured to handle a velocity. The robot can handle a velocity only if the velocity control mode is set. For that, call setRobotState( vpRobot::STATE_VELOCITY_CONTROL) before setVelocity(). |
Implements vpRobot.
Definition at line 600 of file vpRobotUniversalRobots.cpp.
References vpRobot::CAMERA_FRAME, vpRobot::END_EFFECTOR_FRAME, vpException::functionNotImplementedError, get_fMe(), vpRobot::getMaxRotationVelocity(), vpRobot::getMaxTranslationVelocity(), vpRobot::getRobotState(), vpRobot::JOINT_STATE, m_eMc, m_rtde_control, m_vel_control_frame, vpRobot::MIXT_FRAME, vpRobot::REFERENCE_FRAME, vpRobot::saturateVelocities(), vpRobot::STATE_VELOCITY_CONTROL, vpColVector::toStdVector(), and vpRobotException::wrongStateError.
|
inlineinherited |
Definition at line 167 of file vpRobot.h.
References verbose_.
Referenced by vpRobotAfma6::vpRobotAfma6(), vpRobotViper650::vpRobotViper650(), and vpRobotViper850::vpRobotViper850().
| void vpRobotUniversalRobots::stopMotion | ( | ) |
Stop the robot when it is controlled in velocity and set the robot state to vpRobot::STATE_STOP.
| vpRobotException::lowLevelError | : If the low level controller returns an error during robot stopping. |
Definition at line 672 of file vpRobotUniversalRobots.cpp.
References vpException::fatalError, m_rtde_control, setRobotState(), and vpRobot::STATE_STOP.
|
protectedinherited |
Definition at line 111 of file vpRobot.h.
Referenced by operator=(), vpRobot(), and vpRobot().
|
protectedinherited |
robot Jacobian expressed in the end-effector frame
Definition at line 103 of file vpRobot.h.
Referenced by vpRobotAfma6::get_eJe(), vpRobotBiclops::get_eJe(), vpRobotCamera::get_eJe(), vpRobotFlirPtu::get_eJe(), vpRobotFlirPtu::get_eJe(), vpRobotKinova::get_eJe(), vpRobotPioneer::get_eJe(), vpRobotPololuPtu::get_eJe(), vpRobotPololuPtu::get_eJe(), vpRobotPtu46::get_eJe(), vpRobotViper650::get_eJe(), vpRobotViper850::get_eJe(), vpSimulatorCamera::get_eJe(), operator=(), vpRobot(), and vpRobot().
|
protectedinherited |
is the robot Jacobian expressed in the end-effector frame available
Definition at line 105 of file vpRobot.h.
Referenced by operator=(), vpRobot(), and vpRobot().
|
protectedinherited |
robot Jacobian expressed in the robot reference frame available
Definition at line 107 of file vpRobot.h.
Referenced by vpRobotAfma6::get_fJe(), vpRobotBiclops::get_fJe(), vpRobotFlirPtu::get_fJe(), vpRobotFlirPtu::get_fJe(), vpRobotKinova::get_fJe(), vpRobotPololuPtu::get_fJe(), vpRobotPololuPtu::get_fJe(), vpRobotPtu46::get_fJe(), vpRobotViper650::get_fJe(), vpRobotViper850::get_fJe(), operator=(), vpRobot(), and vpRobot().
|
protectedinherited |
is the robot Jacobian expressed in the robot reference frame available
Definition at line 109 of file vpRobot.h.
Referenced by operator=(), vpRobot(), and vpRobot().
|
protected |
Definition at line 134 of file vpRobotUniversalRobots.h.
Referenced by connect(), disconnect(), getDashboardClientHandler(), getPolyScopeVersion(), getRobotModel(), and vpRobotUniversalRobots().
|
protected |
Definition at line 135 of file vpRobotUniversalRobots.h.
Referenced by get_eMc(), getPosition(), set_eMc(), setPosition(), setVelocity(), vpRobotUniversalRobots(), and vpRobotUniversalRobots().
|
protected |
Definition at line 138 of file vpRobotUniversalRobots.h.
Referenced by init().
|
protected |
Definition at line 137 of file vpRobotUniversalRobots.h.
Referenced by init(), and setPosition().
|
protected |
Definition at line 140 of file vpRobotUniversalRobots.h.
Referenced by init().
|
protected |
Definition at line 139 of file vpRobotUniversalRobots.h.
Referenced by init(), and setPosition().
|
protected |
Definition at line 136 of file vpRobotUniversalRobots.h.
Referenced by init(), setPosition(), and setPositioningVelocity().
|
protected |
Definition at line 133 of file vpRobotUniversalRobots.h.
Referenced by connect(), disconnect(), get_fMe(), getRTDEControlInterfaceHandler(), setPosition(), setRobotState(), setVelocity(), stopMotion(), vpRobotUniversalRobots(), and vpRobotUniversalRobots().
|
protected |
Definition at line 132 of file vpRobotUniversalRobots.h.
Referenced by connect(), disconnect(), get_fMe(), getForceTorque(), getPosition(), getPosition(), getRobotMode(), getRTDEReceiveInterfaceHandler(), setPosition(), vpRobotUniversalRobots(), and vpRobotUniversalRobots().
|
protected |
Definition at line 141 of file vpRobotUniversalRobots.h.
Referenced by init(), and setVelocity().
|
protectedinherited |
Definition at line 97 of file vpRobot.h.
Referenced by getMaxRotationVelocity(), vpRobotFlirPtu::init(), vpRobotKinova::init(), vpRobotTemplate::init(), operator=(), setMaxRotationVelocity(), vpRobotPtu46::setVelocity(), vpRobot(), vpRobot(), vpRobotViper650::vpRobotViper650(), and vpRobotViper850::vpRobotViper850().
|
staticprotectedinherited |
Definition at line 98 of file vpRobot.h.
Referenced by vpRobotFlirPtu::init(), vpRobotKinova::init(), vpRobotTemplate::init(), vpRobot(), and vpRobot().
|
protectedinherited |
Definition at line 95 of file vpRobot.h.
Referenced by getMaxTranslationVelocity(), vpRobotFlirPtu::init(), vpRobotKinova::init(), vpRobotTemplate::init(), operator=(), setMaxTranslationVelocity(), vpRobot(), and vpRobot().
|
staticprotectedinherited |
Definition at line 96 of file vpRobot.h.
Referenced by vpRobotFlirPtu::init(), vpRobotKinova::init(), vpRobotTemplate::init(), vpRobot(), and vpRobot().
|
protectedinherited |
number of degrees of freedom
Definition at line 101 of file vpRobot.h.
Referenced by vpRobotPololuPtu::get_eJe(), vpRobotPololuPtu::get_eJe(), vpRobotPololuPtu::get_fJe(), vpRobotPololuPtu::get_fJe(), vpRobotKinova::getJointPosition(), getNDof(), vpRobotPololuPtu::getPosition(), vpRobotFlirPtu::init(), vpRobotKinova::init(), vpRobotTemplate::init(), vpRobotUniversalRobots::init(), operator=(), vpRobotUniversalRobots::readPosFile(), vpRobotKinova::setDoF(), vpRobotKinova::setJointVelocity(), vpRobotKinova::setPosition(), vpRobotPololuPtu::setPosition(), vpRobotFlirPtu::setVelocity(), vpRobotKinova::setVelocity(), vpRobotPololuPtu::setVelocity(), vpRobotTemplate::setVelocity(), vpRobot(), vpRobot(), and vpRobotPololuPtu::vpRobotPololuPtu().
|
protectedinherited |
Definition at line 113 of file vpRobot.h.
Referenced by operator=(), vpRobot(), vpRobot(), and ~vpRobot().
|
protectedinherited |
Definition at line 112 of file vpRobot.h.
Referenced by operator=(), vpRobot(), vpRobot(), and ~vpRobot().
|
protectedinherited |
Definition at line 115 of file vpRobot.h.
Referenced by vpRobotAfma6::init(), vpRobotViper650::init(), vpRobotViper850::init(), vpSimulatorAfma6::initialiseCameraRelativeToObject(), vpSimulatorViper850::initialiseCameraRelativeToObject(), operator=(), vpSimulatorAfma6::setPosition(), vpSimulatorViper850::setPosition(), setVerbose(), vpRobotWireFrameSimulator::setVerbose(), vpSimulatorAfma6::updateArticularPosition(), vpSimulatorViper850::updateArticularPosition(), vpRobot(), vpRobot(), vpRobotAfma6::vpRobotAfma6(), vpRobotViper650::vpRobotViper650(), and vpRobotViper850::vpRobotViper850().