Skip to content

Commit

Permalink
Updated Execution Order #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Blebot0 committed Jun 8, 2023
1 parent 7e6b567 commit 36073c1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions chaining_controller/launch/cart_example_effort.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ def generate_launch_description():
output="screen",
)

load_joint_trajectory_controller = ExecuteProcess(
load_effort_upper_controller = ExecuteProcess(
cmd=[
"ros2",
"control",
"load_controller",
"--set-state",
"inactive",
"active",
"effort_controller_upper",
],
output="screen",
Expand All @@ -88,7 +88,7 @@ def generate_launch_description():
"control",
"load_controller",
"--set-state",
"inactive",
"active",
"chained_controller",
],
output="screen",
Expand All @@ -104,13 +104,13 @@ def generate_launch_description():
RegisterEventHandler(
event_handler=OnProcessExit(
target_action=load_joint_state_controller,
on_exit=[load_joint_trajectory_controller],
on_exit=[load_chained_controller],
)
),
RegisterEventHandler(
event_handler=OnProcessExit(
target_action=load_joint_trajectory_controller,
on_exit=[load_chained_controller],
target_action=load_chained_controller,
on_exit=[load_effort_upper_controller],
)
),
gazebo,
Expand Down

0 comments on commit 36073c1

Please sign in to comment.