Added a custom launch substitution to modify YAML parameters based on launch...
Added a custom launch substitution to modify YAML parameters based on launch params - lifecycle version (#771) * Initial version copied from old code * Code now installs You can `import nav2_common.launch.rewritten_yaml` now. * Bring RewrittenYaml class into launch scope like other launch packages do This lets you say: `from nav2_common.launch import RewrittenYaml` instead of `from nav2_common.launch.rewritten_yaml import RewrittenYaml` * Add support for converting strings to non-string values in YAML By the time RewrittenYaml gets the rewrite values, they've already been resolved to strings. This is a problem for use_sim_time because the code only accepts bools. To work around this RewrritenYaml has an option to convert all values to an actual type. * Add dependency in nav2_bringup package so it doesn't get forgotten.
Showing
- nav2_bringup/package.xml 1 addition, 0 deletionsnav2_bringup/package.xml
- nav2_common/CMakeLists.txt 3 additions, 0 deletionsnav2_common/CMakeLists.txt
- nav2_common/nav2_common/__init__.py 0 additions, 0 deletionsnav2_common/nav2_common/__init__.py
- nav2_common/nav2_common/launch/__init__.py 1 addition, 0 deletionsnav2_common/nav2_common/launch/__init__.py
- nav2_common/nav2_common/launch/rewritten_yaml.py 98 additions, 0 deletionsnav2_common/nav2_common/launch/rewritten_yaml.py
- nav2_common/package.xml 2 additions, 0 deletionsnav2_common/package.xml
nav2_common/nav2_common/__init__.py
0 → 100644
nav2_common/nav2_common/launch/__init__.py
0 → 100644
Please register or sign in to comment