ROS 2 launch: included files leak their arguments into the parent
@tylerd▲ 0 net votes
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.