|
43 | 43 | FindExecutable, |
44 | 44 | LaunchConfiguration, |
45 | 45 | PathJoinSubstitution, |
46 | | - OrSubstitution, |
47 | 46 | ) |
48 | 47 |
|
49 | 48 |
|
50 | 49 | def launch_setup(context, *args, **kwargs): |
51 | 50 |
|
52 | 51 | # Initialize Arguments |
53 | 52 | ur_type = LaunchConfiguration("ur_type") |
54 | | - use_fake_hardware = LaunchConfiguration("use_fake_hardware") |
55 | 53 | safety_limits = LaunchConfiguration("safety_limits") |
56 | 54 | safety_pos_margin = LaunchConfiguration("safety_pos_margin") |
57 | 55 | safety_k_position = LaunchConfiguration("safety_k_position") |
@@ -179,9 +177,7 @@ def launch_setup(context, *args, **kwargs): |
179 | 177 | # Trajectory Execution Configuration |
180 | 178 | controllers_yaml = load_yaml("ur_moveit_config", "config/controllers.yaml") |
181 | 179 | # the scaled_joint_trajectory_controller does not work on fake hardware |
182 | | - change_controllers = context.perform_substitution( |
183 | | - OrSubstitution(use_fake_hardware, use_sim_time) |
184 | | - ) |
| 180 | + change_controllers = context.perform_substitution(use_sim_time) |
185 | 181 | if change_controllers == "true": |
186 | 182 | controllers_yaml["scaled_joint_trajectory_controller"]["default"] = False |
187 | 183 | controllers_yaml["joint_trajectory_controller"]["default"] = True |
@@ -287,13 +283,6 @@ def generate_launch_description(): |
287 | 283 | choices=["ur3", "ur3e", "ur5", "ur5e", "ur10", "ur10e", "ur16e", "ur20", "ur30"], |
288 | 284 | ) |
289 | 285 | ) |
290 | | - declared_arguments.append( |
291 | | - DeclareLaunchArgument( |
292 | | - "use_fake_hardware", |
293 | | - default_value="false", |
294 | | - description="Indicate whether robot is running with fake hardware mirroring command to its states.", |
295 | | - ) |
296 | | - ) |
297 | 286 | declared_arguments.append( |
298 | 287 | DeclareLaunchArgument( |
299 | 288 | "safety_limits", |
|
0 commit comments