Skip to content

Commit

Permalink
Merge pull request NaokiTakahashi12#22 from NaokiTakahashi12/fix/spaw…
Browse files Browse the repository at this point in the history
…n-ros2-controller-timing

Add a delay of 1.0 second for spawning controllers
  • Loading branch information
NaokiTakahashi12 authored Dec 20, 2023
2 parents d7650c0 + e0966c5 commit 2a3b31f
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions unitree_go1_description/launch/unitree_go1.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,24 +226,29 @@ def generate_launch_nodes():
launch.substitutions.LaunchConfiguration('use_gz')
)
),
launch_ros.actions.Node(
package='controller_manager',
executable='spawner',
output=output,
arguments=[
'joint_state_broadcaster',
'--controller-manager',
'controller_manager'
]
),
launch_ros.actions.Node(
package='controller_manager',
executable='spawner',
output=output,
arguments=[
'joint_trajectory_controller',
'--controller-manager',
'controller_manager'
launch.actions.TimerAction(
period=1.0,
actions=[
launch_ros.actions.Node(
package='controller_manager',
executable='spawner',
output=output,
arguments=[
'joint_state_broadcaster',
'--controller-manager',
'controller_manager'
]
),
launch_ros.actions.Node(
package='controller_manager',
executable='spawner',
output=output,
arguments=[
'joint_trajectory_controller',
'--controller-manager',
'controller_manager'
]
),
]
),
launch_ros.actions.Node(
Expand Down

0 comments on commit 2a3b31f

Please sign in to comment.