Skip to content

Commit 26c87b4

Browse files
authored
Add support for UR8 Long (#1491)
* Add support for launching UR8Long * Reorder model listings by generation, payload The list of supported robot models has been growing over time. This commit sorts them by generation (CB3, e-Series and UR series) and each generation by payload.
1 parent 234c0fa commit 26c87b4

File tree

10 files changed

+224
-11
lines changed

10 files changed

+224
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ For getting started, you'll basically need three steps:
124124
details.
125125

126126
```bash
127-
# Replace ur5e with one of ur3, ur3e, ur5, ur5e, ur7e, ur10, ur10e, ur12e, ur16e, ur15, ur20, ur30
127+
# Replace ur5e with one of ur3, ur5, ur10, ur3e, ur5e, ur7e, ur10e, ur12e, ur16e, ur8long, ur15, ur20, ur30
128128
# Replace the IP address with the IP address of your actual robot / URSim
129129
ros2 launch ur_robot_driver ur_control.launch.py ur_type:=ur5e robot_ip:=192.168.56.101
130130
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
controller_manager:
2+
ros__parameters:
3+
update_rate: 500 # Hz
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# Copyright (c) 2021 PickNik, Inc.
2+
#
3+
# Redistribution and use in source and binary forms, with or without
4+
# modification, are permitted provided that the following conditions are met:
5+
#
6+
# * Redistributions of source code must retain the above copyright
7+
# notice, this list of conditions and the following disclaimer.
8+
#
9+
# * Redistributions in binary form must reproduce the above copyright
10+
# notice, this list of conditions and the following disclaimer in the
11+
# documentation and/or other materials provided with the distribution.
12+
#
13+
# * Neither the name of the {copyright_holder} nor the names of its
14+
# contributors may be used to endorse or promote products derived from
15+
# this software without specific prior written permission.
16+
#
17+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
21+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27+
# POSSIBILITY OF SUCH DAMAGE.
28+
29+
#
30+
# Author: Denis Stogl
31+
32+
from launch import LaunchDescription
33+
from launch.actions import DeclareLaunchArgument, IncludeLaunchDescription
34+
from launch.launch_description_sources import PythonLaunchDescriptionSource
35+
from launch.substitutions import LaunchConfiguration, ThisLaunchFileDir
36+
37+
38+
def generate_launch_description():
39+
# Declare arguments
40+
declared_arguments = []
41+
declared_arguments.append(
42+
DeclareLaunchArgument(
43+
"robot_ip",
44+
description="IP address by which the robot can be reached.",
45+
)
46+
)
47+
declared_arguments.append(
48+
DeclareLaunchArgument(
49+
"use_fake_hardware",
50+
default_value="false",
51+
description="Start robot with fake hardware mirroring command to its states.",
52+
)
53+
)
54+
declared_arguments.append(
55+
DeclareLaunchArgument(
56+
"fake_sensor_commands",
57+
default_value="false",
58+
description="Enable fake command interfaces for sensors used for simple simulations. \
59+
Used only if 'use_fake_hardware' parameter is true.",
60+
)
61+
)
62+
declared_arguments.append(
63+
DeclareLaunchArgument(
64+
"initial_joint_controller",
65+
default_value="scaled_joint_trajectory_controller",
66+
description="Initially loaded robot controller.",
67+
choices=[
68+
"scaled_joint_trajectory_controller",
69+
"joint_trajectory_controller",
70+
"forward_velocity_controller",
71+
"forward_position_controller",
72+
],
73+
)
74+
)
75+
declared_arguments.append(
76+
DeclareLaunchArgument(
77+
"activate_joint_controller",
78+
default_value="true",
79+
description="Activate loaded joint controller.",
80+
)
81+
)
82+
83+
# Initialize Arguments
84+
robot_ip = LaunchConfiguration("robot_ip")
85+
use_fake_hardware = LaunchConfiguration("use_fake_hardware")
86+
fake_sensor_commands = LaunchConfiguration("fake_sensor_commands")
87+
initial_joint_controller = LaunchConfiguration("initial_joint_controller")
88+
activate_joint_controller = LaunchConfiguration("activate_joint_controller")
89+
90+
base_launch = IncludeLaunchDescription(
91+
PythonLaunchDescriptionSource([ThisLaunchFileDir(), "/ur_control.launch.py"]),
92+
launch_arguments={
93+
"ur_type": "ur8long",
94+
"robot_ip": robot_ip,
95+
"use_fake_hardware": use_fake_hardware,
96+
"fake_sensor_commands": fake_sensor_commands,
97+
"initial_joint_controller": initial_joint_controller,
98+
"activate_joint_controller": activate_joint_controller,
99+
}.items(),
100+
)
101+
102+
return LaunchDescription(declared_arguments + [base_launch])

ur_bringup/launch/ur_control.launch.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,15 @@ def generate_launch_description():
5252
description="Type/series of used UR robot.",
5353
choices=[
5454
"ur3",
55-
"ur3e",
5655
"ur5",
56+
"ur10",
57+
"ur3e",
5758
"ur5e",
5859
"ur7e",
59-
"ur10",
6060
"ur10e",
6161
"ur12e",
6262
"ur16e",
63+
"ur8long",
6364
"ur15",
6465
"ur20",
6566
"ur30",

ur_moveit_config/launch/ur_moveit.launch.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,14 +285,15 @@ def generate_launch_description():
285285
description="Type/series of used UR robot.",
286286
choices=[
287287
"ur3",
288-
"ur3e",
289288
"ur5",
289+
"ur10",
290+
"ur3e",
290291
"ur5e",
291292
"ur7e",
292-
"ur10",
293293
"ur10e",
294294
"ur12e",
295295
"ur16e",
296+
"ur8long",
296297
"ur15",
297298
"ur20",
298299
"ur30",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
controller_manager:
2+
ros__parameters:
3+
update_rate: 500 # Hz

ur_robot_driver/doc/usage/startup.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ nodes for UR robots. The only required arguments are the ``ur_type`` and ``robot
2222
2323
$ ros2 launch ur_robot_driver ur_control.launch.py ur_type:=ur5e robot_ip:=192.168.56.101
2424
25-
Allowed ``ur_type`` strings: ``ur3``, ``ur3e``, ``ur5``, ``ur5e``, ``ur7e``, ``ur10``, ``ur10e``,
26-
``ur12e``, ``ur16e``, ``ur15``, ``ur20``, ``ur30``.
25+
Allowed ``ur_type`` strings: ``ur3``, ``ur5``, ``ur10``, ``ur3e``, ``ur5e``, ``ur7e``, ``ur10e``,
26+
``ur12e``, ``ur16e``, ``ur8long``, ``ur15``, ``ur20``, ``ur30``.
2727

2828
Other important arguments are:
2929

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# Copyright (c) 2025 Universal Robots A/S
2+
#
3+
# Redistribution and use in source and binary forms, with or without
4+
# modification, are permitted provided that the following conditions are met:
5+
#
6+
# * Redistributions of source code must retain the above copyright
7+
# notice, this list of conditions and the following disclaimer.
8+
#
9+
# * Redistributions in binary form must reproduce the above copyright
10+
# notice, this list of conditions and the following disclaimer in the
11+
# documentation and/or other materials provided with the distribution.
12+
#
13+
# * Neither the name of the {copyright_holder} nor the names of its
14+
# contributors may be used to endorse or promote products derived from
15+
# this software without specific prior written permission.
16+
#
17+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20+
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
21+
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22+
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23+
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24+
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25+
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26+
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27+
# POSSIBILITY OF SUCH DAMAGE.
28+
29+
from launch import LaunchDescription
30+
from launch.actions import DeclareLaunchArgument, IncludeLaunchDescription
31+
from launch.launch_description_sources import PythonLaunchDescriptionSource
32+
from launch.substitutions import LaunchConfiguration, ThisLaunchFileDir
33+
34+
35+
def generate_launch_description():
36+
# Declare arguments
37+
declared_arguments = []
38+
declared_arguments.append(
39+
DeclareLaunchArgument(
40+
"robot_ip",
41+
description="IP address by which the robot can be reached.",
42+
)
43+
)
44+
declared_arguments.append(
45+
DeclareLaunchArgument(
46+
"use_mock_hardware",
47+
default_value="false",
48+
description="Start robot with mock hardware mirroring command to its states.",
49+
)
50+
)
51+
declared_arguments.append(
52+
DeclareLaunchArgument(
53+
"mock_sensor_commands",
54+
default_value="false",
55+
description="Enable mock command interfaces for sensors used for simple simulations. "
56+
"Used only if 'use_mock_hardware' parameter is true.",
57+
)
58+
)
59+
declared_arguments.append(
60+
DeclareLaunchArgument(
61+
"initial_joint_controller",
62+
default_value="scaled_joint_trajectory_controller",
63+
description="Initially loaded robot controller.",
64+
choices=[
65+
"scaled_joint_trajectory_controller",
66+
"joint_trajectory_controller",
67+
"forward_velocity_controller",
68+
"forward_position_controller",
69+
"freedrive_mode_controller",
70+
"passthrough_trajectory_controller",
71+
],
72+
)
73+
)
74+
declared_arguments.append(
75+
DeclareLaunchArgument(
76+
"activate_joint_controller",
77+
default_value="true",
78+
description="Activate loaded joint controller.",
79+
)
80+
)
81+
82+
# Initialize Arguments
83+
robot_ip = LaunchConfiguration("robot_ip")
84+
use_mock_hardware = LaunchConfiguration("use_mock_hardware")
85+
mock_sensor_commands = LaunchConfiguration("mock_sensor_commands")
86+
initial_joint_controller = LaunchConfiguration("initial_joint_controller")
87+
activate_joint_controller = LaunchConfiguration("activate_joint_controller")
88+
89+
base_launch = IncludeLaunchDescription(
90+
PythonLaunchDescriptionSource([ThisLaunchFileDir(), "/ur_control.launch.py"]),
91+
launch_arguments={
92+
"ur_type": "ur8long",
93+
"robot_ip": robot_ip,
94+
"use_mock_hardware": use_mock_hardware,
95+
"mock_sensor_commands": mock_sensor_commands,
96+
"initial_joint_controller": initial_joint_controller,
97+
"activate_joint_controller": activate_joint_controller,
98+
}.items(),
99+
)
100+
101+
return LaunchDescription(declared_arguments + [base_launch])

ur_robot_driver/launch/ur_control.launch.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,14 +400,15 @@ def generate_launch_description():
400400
description="Type/series of used UR robot.",
401401
choices=[
402402
"ur3",
403-
"ur3e",
404403
"ur5",
404+
"ur10",
405+
"ur3e",
405406
"ur5e",
406407
"ur7e",
407-
"ur10",
408408
"ur10e",
409409
"ur12e",
410410
"ur16e",
411+
"ur8long",
411412
"ur15",
412413
"ur20",
413414
"ur30",

ur_robot_driver/test/test_common.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,14 +310,15 @@ def _declare_launch_arguments():
310310
description="Type/series of used UR robot.",
311311
choices=[
312312
"ur3",
313-
"ur3e",
314313
"ur5",
314+
"ur10",
315+
"ur3e",
315316
"ur5e",
316317
"ur7e",
317-
"ur10",
318318
"ur10e",
319319
"ur12e",
320320
"ur16e",
321+
"ur8long",
321322
"ur15",
322323
"ur20",
323324
"ur30",

0 commit comments

Comments
 (0)