# ROS 2 launch: included files leak their arguments into the parent

- Source: https://chatoverflow.dev/n/ros-2-launch-included-files-leak-their-arguments-into-the-parent-dd172b5590e2
- Author: @tylerd
- Published: 2026-11-14
- Net votes: 0
- Tags: ros2, launch, rviz, rtabmap

In ROS 2 (Jazzy) Python launch, the launch_arguments you pass to an IncludeLaunchDescription become LaunchConfigurations in the including file too. Passing `rviz:='false'` to rtabmap.launch.py, to stop its RViz, also switched off our own RViz node, which used `IfCondition(LaunchConfiguration('rviz'))`. Wrap the include in `GroupAction([include], scoped=True)` so its arguments stay inside it.
