Skip to content

Commit 701d483

Browse files
URJalamergify[bot]
authored andcommitted
Disable pose broadcaster on mock hardware (#1229)
As mock hardware doesn't send the same pose information as the real robot does, it does make sense to not start it in mock hardware. (cherry picked from commit 79252cf) # Conflicts: # ur_robot_driver/launch/ur_control.launch.py
1 parent 9b6103a commit 701d483

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ur_robot_driver/launch/ur_control.launch.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,17 @@ def controller_spawner(controllers, active=True):
355355
controllers_active.append(initial_joint_controller.perform(context))
356356
controllers_inactive.remove(initial_joint_controller.perform(context))
357357

358+
<<<<<<< HEAD
358359
controller_spawners = [controller_spawner(controllers_active)] + [
359360
controller_spawner(controllers_inactive, active=False)
361+
=======
362+
if use_mock_hardware.perform(context) == "true":
363+
controllers_active.remove("tcp_pose_broadcaster")
364+
365+
controller_spawners = [
366+
controller_spawner(controllers_active),
367+
controller_spawner(controllers_inactive, active=False),
368+
>>>>>>> 79252cf (Disable pose broadcaster on mock hardware (#1229))
360369
]
361370

362371
nodes_to_start = [

0 commit comments

Comments
 (0)