Closed ivanpauno closed 2 years ago
@jacobperron I'm still thinking if this is the right approach, but feedback would be appreciated.
The only other thing I would mention is that when displaying them on the CLI it would be nice to differentiate between arguments that are conditional and ones that are certain.
That's already possible, see:
and:
Stuffing the attribute in the original action is a bit hacky though, we could maybe be returning a:
List[Tuple[DeclareLaunchArgument, List[IncludeLaunchDescription], bool]]
where the last boolean indicates if the DeclareLaunchArgument
action is being conditionally included or not.
Currently you can set an argument of a nested launch description from the top level, without the need of redeclaring the argument. This updates the
get_launch_arguments()
method to return a more complete result (currently it doesn't return arguments from included launch descriptions). It also updates theinclude_launch_description
launch arguments validation by tracking all the include launch description actions in the middle (this basically avoids reintroducing https://github.com/ros2/launch/issues/248).Related discussion https://github.com/ros2/launch/issues/313.