Skip to content

Commit 14762f6

Browse files
add servo launch argument
1 parent 3a98f72 commit 14762f6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ur_simulation_gz/launch/ur_sim_moveit.launch.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ def launch_setup(context, *args, **kwargs):
4343
controllers_file = LaunchConfiguration("controllers_file")
4444
description_file = LaunchConfiguration("description_file")
4545
moveit_launch_file = LaunchConfiguration("moveit_launch_file")
46+
launch_servo = LaunchConfiguration("launch_servo")
4647

4748
ur_control_launch = IncludeLaunchDescription(
4849
PythonLaunchDescriptionSource(
@@ -65,6 +66,7 @@ def launch_setup(context, *args, **kwargs):
6566
"ur_type": ur_type,
6667
"use_sim_time": "true",
6768
"launch_rviz": "true",
69+
"launch_servo": launch_servo,
6870
}.items(),
6971
)
7072

@@ -119,6 +121,13 @@ def generate_launch_description():
119121
description="Absolute path to YAML file with the controllers configuration.",
120122
)
121123
)
124+
declared_arguments.append(
125+
DeclareLaunchArgument(
126+
"launch_servo",
127+
default_value="false",
128+
description="Launch the MoveIt servo.",
129+
)
130+
)
122131
declared_arguments.append(
123132
DeclareLaunchArgument(
124133
"description_file",

0 commit comments

Comments
 (0)