Skip to content

Commit a216319

Browse files
henningkayserurfeex
authored andcommitted
Launch arguments support bool instead of string types only
The priorliy used string comparison would not work when passing proper bool types when including the launch file. This fix allows using both string and bool values.
1 parent d1dd815 commit a216319

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ur_robot_driver/launch/ur_control.launch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,11 @@ def controller_spawner(controllers, active=True):
192192
"freedrive_mode_controller",
193193
"tool_contact_controller",
194194
]
195-
if activate_joint_controller.perform(context) == "true":
195+
if activate_joint_controller.perform(context):
196196
controllers_active.append(initial_joint_controller.perform(context))
197197
controllers_inactive.remove(initial_joint_controller.perform(context))
198198

199-
if use_mock_hardware.perform(context) == "true":
199+
if use_mock_hardware.perform(context):
200200
controllers_active.remove("tcp_pose_broadcaster")
201201

202202
controller_spawners = [

0 commit comments

Comments
 (0)