Controller for the UR10e using the RTDE Libraries https://sdurobotics.gitlab.io/ur_rtde/api/api.html
- ROS Noetic
- Eigen3
- ur_rtde
-
Clone the Repository inside the
catkin_ws:cd ~/catkin_ws/src git clone git@github.com:ARSControl/ur_rtde_controller.git -
Install the RTDE Libraries
sudo add-apt-repository ppa:sdurobotics/ur-rtde sudo apt-get update sudo apt install librtde librtde-dev -
Install Python Requirements:
pip install -r ../path/to/this/repo/requirements.txt -
Build your workspace
cd ~/catkin_ws catkin_make
The Kinematics Libraries are already available for the following robots:
- CB3 Series (UR3, UR5, UR10)
- e-Series (UR3e, UR5e, UR10e, UR16e)
If you want to add a new robot, follow these steps:
-
Install
invoke:pip install invoke -
Create the Kinematic Source Files in
src/kinematic/robot_name_kinematic:compute_robot_name_direct_kinematic.cppcompute_robot_name_jacobian.cppcompute_robot_name_jacobian_dot_dq.cpp
-
Use https://github.com/ARSControl/robot_kinematic to generate the Robot Kinematic Source Files (Little Manual Edit is Needed).
-
Edit the
src/kinematic/tasks.pybuild file adding the new source and destination path. -
Build the Robot Kinematic Library:
cd path/to/package/src invoke build -
Add the new libraries to the
scripts/kinematic_wrapperscript file.
-
Set the UR Control Mode to
Remoteon the TP -
To use the RobotiQ Gripper remember to Activate it from the TP
UR+Interface -
Launch RTDE Controller
roslaunch ur_rtde_controller rtde_controller.launch ROBOT_IP:=192.168.xx.xx enable_gripper:=true/false
Launch arguments: ROBOT_IP, enable_gripper, asynchronous, limit_acc, ft_sensor, rate (default 500 Hz), joint_state_topic (default /joint_states), trajectory_start_tolerance, trajectory_goal_tolerance (default 0.001 rad).
Torque Mode (direct joint torque control) is available only in the ROS2 version (
humblebranch).
Topic: /ur_rtde/controllers/trajectory_controller/command (trajectory_msgs/JointTrajectory)
- The trajectory is executed at the controller
rate(default 500 Hz -> 2 ms). - Trajectories already sampled at
1/rate(with velocities) are executed as they are, otherwise they are resampled:- positions + velocities + accelerations -> quintic segments
- positions + velocities -> cubic Hermite segments
- positions only -> clamped cubic spline (zero initial and final velocity)
- The first point must be within
trajectory_start_tolerance[rad] of the actual joint position, the initial velocity must match the actual one and the final velocity must be zero. joint_names(if given) are used to reorder the joints.- A new trajectory replaces the one in execution.
- At the end,
/ur_rtde/trajectory_executedpublishestrueas soon as the final point is reached withintrajectory_goal_tolerance[rad],falseif it is still not reached within the settling time after the trajectory end (10% of the trajectory duration, minimum 0.5 s).
/ur_rtde/digitalIO/command(std_msgs/Int8): standard digital output./ur_rtde/tool_digitalIO/command(std_msgs/Int8): tool digital output.
The value is +(id + 1) to set the output id high, -(id + 1) to set it low.