Skip to content

Commit

Permalink
Also make bt_path and max_jobs launch args
Browse files Browse the repository at this point in the history
Signed-off-by: Yadunund <yadunund@gmail.com>
  • Loading branch information
Yadunund committed Jan 22, 2025
1 parent 43ec932 commit 3e9a291
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions nexus_integration_tests/launch/inter_workcell.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def launch_setup(context, *args, **kwargs):
main_bt_filename = LaunchConfiguration("main_bt_filename")
remap_task_types = LaunchConfiguration("remap_task_types")
nexus_rviz_config = LaunchConfiguration("nexus_rviz_config")
system_orchestrator_bt_dir = LaunchConfiguration("system_orchestrator_bt_dir")
max_jobs = LaunchConfiguration("max_jobs")

system_orchestrator_node = LifecycleNode(
name="system_orchestrator",
Expand All @@ -126,13 +128,10 @@ def launch_setup(context, *args, **kwargs):
executable="nexus_system_orchestrator",
parameters=[
{
"bt_path": (
FindPackageShare("nexus_integration_tests"),
"/config/system_bts",
),
"bt_path": system_orchestrator_bt_dir,
"remap_task_types": ParameterValue(remap_task_types, value_type=str),
"main_bt_filename": main_bt_filename,
"max_jobs": 2,
"max_jobs": max_jobs,
}
],
)
Expand Down Expand Up @@ -303,6 +302,16 @@ def generate_launch_description():
default_value=os.path.join(get_package_share_directory("nexus_integration_tests"), "rviz", "nexus_panel.rviz"),
description="Absolute path to an RViZ config file.",
),
DeclareLaunchArgument(
"system_orchestrator_bt_dir",
default_value=os.path.join(get_package_share_directory("nexus_integration_tests"), "config", "system_bts"),
description="Absolute path directory containing BTs for the system orchestrator.",
),
DeclareLaunchArgument(
"max_jobs",
default_value="2",
description="Maximum number of jobs the system orchestrator can process in parallel.",
),
OpaqueFunction(function=launch_setup),
]
)

0 comments on commit 3e9a291

Please sign in to comment.