Skip to content

Commit

Permalink
Make main_bt_filename a launch parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
  • Loading branch information
luca-della-vedova committed Jan 6, 2025
1 parent ac56b0f commit 99c0c69
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nexus_integration_tests/launch/control_center.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def launch_setup(context, *args, **kwargs):
transporter_plugin = LaunchConfiguration("transporter_plugin")
activate_system_orchestrator = LaunchConfiguration("activate_system_orchestrator")
headless = LaunchConfiguration("headless")
main_bt_filename = LaunchConfiguration("main_bt_filename")

nexus_panel_rviz_path = os.path.join(
get_package_share_directory("nexus_integration_tests"), "rviz", "nexus_panel.rviz"
Expand All @@ -132,7 +133,7 @@ def launch_setup(context, *args, **kwargs):
"""{
pick_and_place: [place_on_conveyor, pick_from_conveyor],
}""",
"main_bt_filename": "main.xml",
"main_bt_filename": main_bt_filename,
"max_jobs": 2,
}
],
Expand Down Expand Up @@ -244,6 +245,11 @@ def generate_launch_description():
default_value="true",
description="Launch in headless mode (no gui)",
),
DeclareLaunchArgument(
"main_bt_filename",
default_value="main.xml",
description="File name of the main system orchestrator behavior tree",
),
OpaqueFunction(function=launch_setup),
]
)

0 comments on commit 99c0c69

Please sign in to comment.