Difficulty: 🔴 Hard
Category: Advanced Launch
Tags: launch, include, modular, composition
Execution Type: launch_file
Frequency: medium
A full robot launch file is basically a tree of includes: robot.launch -> (sensors.launch, navigation.launch, control.launch).
Build complex systems by including other launch files. This allows for modularity (e.g., including nav2_bringup inside your robot_bringup).
- Include a launch file named
other.launch.pyfrom packageother_package - Pass an argument
my_arg:='value'to the included file
Output:
LaunchDescriptionwithIncludeLaunchDescription
- Syntax around
PythonLaunchDescriptionSource(it takes a path string). - Passing arguments requires
launch_arguments={'key': 'val'}.items().
- Include action: IncludeLaunchDescription used
- Path substitution: PathJoinSubstitution used
- Parameter passing: Parameters forwarded
- Problem #17
Found an issue with this problem's description, or have a better hint?
Open a PR or report it in Discussions.
Note: TestScripts and reference solutions are maintained by the SimuCode team
and are not part of this open spec. This ensures grading integrity on simucode.online.