Skip to content

Commit

Permalink
Revert "Don't delay robot_controller_spawner"
Browse files Browse the repository at this point in the history
This reverts commit e9c5ba0.
  • Loading branch information
christophfroehlich committed Jul 22, 2024
1 parent e9c5ba0 commit e12bc9a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion example_1/bringup/launch/rrbot.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,20 @@ def generate_launch_description():
)
)

# Delay start of robot_controller after `joint_state_broadcaster`
delay_robot_controller_spawner_after_joint_state_broadcaster_spawner = RegisterEventHandler(
event_handler=OnProcessExit(
target_action=joint_state_broadcaster_spawner,
on_exit=[robot_controller_spawner],
)
)

nodes = [
control_node,
robot_state_pub_node,
joint_state_broadcaster_spawner,
robot_controller_spawner,
delay_rviz_after_joint_state_broadcaster_spawner,
delay_robot_controller_spawner_after_joint_state_broadcaster_spawner,
]

return LaunchDescription(declared_arguments + nodes)

0 comments on commit e12bc9a

Please sign in to comment.