Skip to content

Commit 79252cf

Browse files
authored
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.
1 parent 60815e8 commit 79252cf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ur_robot_driver/launch/ur_control.launch.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ def controller_spawner(controllers, active=True):
183183
controllers_active.append(initial_joint_controller.perform(context))
184184
controllers_inactive.remove(initial_joint_controller.perform(context))
185185

186+
if use_mock_hardware.perform(context) == "true":
187+
controllers_active.remove("tcp_pose_broadcaster")
188+
186189
controller_spawners = [
187190
controller_spawner(controllers_active),
188191
controller_spawner(controllers_inactive, active=False),

0 commit comments

Comments
 (0)