Skip to content

Commit 6c52828

Browse files
fmauchRobertWilbrandt
authored andcommitted
Fix selecting the right controller given fake_hw
This was falsely introduced earlier. This is a working version.
1 parent 5bba061 commit 6c52828

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ur_moveit_config/launch/ur_moveit.launch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ def launch_setup(context, *args, **kwargs):
164164
# Trajectory Execution Configuration
165165
controllers_yaml = load_yaml("ur_moveit_config", "config/controllers.yaml")
166166
# the scaled_joint_trajectory_controller does not work on fake hardware
167-
if use_fake_hardware:
167+
change_controllers = context.perform_substitution(use_fake_hardware)
168+
if change_controllers == "true":
168169
controllers_yaml["scaled_joint_trajectory_controller"]["default"] = False
169170
controllers_yaml["joint_trajectory_controller"]["default"] = True
170171

0 commit comments

Comments
 (0)