ros2 / launch_ros

Tools for launching ROS nodes and for writing tests involving ROS nodes.
Apache License 2.0
52 stars 68 forks source link

Enable reading Launch Configuration from yaml file #400

Open tonynajjar opened 1 week ago

tonynajjar commented 1 week ago

Feature request

Feature description

As far as I know, the only way to pass LaunchConfigurations to a launch file is through the command line e.g. ros2 launch nav2_bringup tb3_simulation_launch.py headless:=False. It would be useful to be able to load LaunchConfiguration via a YAML file e.g. ros2 launch nav2_bringup tb3_simulation_launch.py --launch-arguments /path/to/yaml.

This is useful when you want to version control the launch configuration for configuration management purposes (e.g. in environment X, we don't want to run a certain monitoring node)

Implementation considerations

Some requirements from my side:

tonynajjar commented 6 days ago

Here is a very basic working example (without all the requirements): https://github.com/angsa-robotics/launch_ros/commit/8cbb490b4442b22bbe81d0abea86f0821527112b