36 #ifndef vpRobotUniversalRobots_h
37 #define vpRobotUniversalRobots_h
39 #include <visp3/core/vpConfig.h>
41 #if defined(VISP_HAVE_UR_RTDE)
45 #include <visp3/robot/vpRobot.h>
46 #include <visp3/robot/vpRobotException.h>
48 #include <ur_rtde/dashboard_client.h>
49 #include <ur_rtde/rtde_control_interface.h>
50 #include <ur_rtde/rtde_receive_interface.h>
74 void connect(
const std::string &ur_address);
98 std::string getPolyScopeVersion();
101 int getRobotMode()
const;
102 std::string getRobotModel()
const;
104 void move(
const std::string &filename,
double velocity_percentage = 10.);
106 bool readPosFile(
const std::string &filename,
vpColVector &q);
107 bool savePosFile(
const std::string &filename,
const vpColVector &q);
111 void setPositioningVelocity(
double velocity);
Implementation of column vector and the associated operations.
Implementation of an homogeneous matrix and operations on such kind of matrices.
Implementation of a matrix and operations on matrices.
Implementation of a pose vector and operations on poses.
double m_max_joint_acceleration
vpHomogeneousMatrix m_eMc
double m_positioningVelocity
std::shared_ptr< ur_rtde::RTDEReceiveInterface > getRTDEReceiveInterfaceHandler() const
double m_max_linear_speed
std::shared_ptr< ur_rtde::DashboardClient > getDashboardClientHandler() const
double m_max_linear_acceleration
std::shared_ptr< ur_rtde::DashboardClient > m_db_client
vpRobot::vpControlFrameType m_vel_control_frame
std::shared_ptr< ur_rtde::RTDEControlInterface > getRTDEControlInterfaceHandler() const
std::shared_ptr< ur_rtde::RTDEReceiveInterface > m_rtde_receive
std::shared_ptr< ur_rtde::RTDEControlInterface > m_rtde_control
Class that defines a generic virtual robot.
virtual void get_eJe(vpMatrix &_eJe)=0
Get the robot Jacobian expressed in the end-effector frame.
virtual void setVelocity(const vpRobot::vpControlFrameType frame, const vpColVector &vel)=0
virtual void getPosition(const vpRobot::vpControlFrameType frame, vpColVector &position)=0
Get the robot position (frame has to be specified).
virtual vpRobotStateType setRobotState(const vpRobot::vpRobotStateType newState)
virtual void get_fJe(vpMatrix &_fJe)=0
virtual void getDisplacement(const vpRobot::vpControlFrameType frame, vpColVector &q)=0
virtual void setPosition(const vpRobot::vpControlFrameType frame, const vpColVector &q)=0
Set a displacement (frame has to be specified) in position control.