Skip to content

Commit

Permalink
Disable pose broadcaster on mock hardware (UniversalRobots#1229)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
URJala authored Jan 13, 2025
1 parent 60815e8 commit 79252cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ur_robot_driver/launch/ur_control.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ def controller_spawner(controllers, active=True):
controllers_active.append(initial_joint_controller.perform(context))
controllers_inactive.remove(initial_joint_controller.perform(context))

if use_mock_hardware.perform(context) == "true":
controllers_active.remove("tcp_pose_broadcaster")

controller_spawners = [
controller_spawner(controllers_active),
controller_spawner(controllers_inactive, active=False),
Expand Down

0 comments on commit 79252cf

Please sign in to comment.