rcl/rcl_yaml_param_parser
Michel Hidalgo 5fde9c0c0e
[YAML Parser] Support parameter value parsing (#471)
* Support parameter YAML string value parsing.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Address peer review comments.

- Improve test coverage using new getter API.
- Unify function return style and improve readability.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>

* Clean up allocations in rcl_yaml_param_parser package tests.

Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
2019-07-12 15:07:42 -03:00
..
include/rcl_yaml_param_parser [YAML Parser] Support parameter value parsing (#471) 2019-07-12 15:07:42 -03:00
src [YAML Parser] Support parameter value parsing (#471) 2019-07-12 15:07:42 -03:00
test [YAML Parser] Support parameter value parsing (#471) 2019-07-12 15:07:42 -03:00
CHANGELOG.rst 0.7.4 2019-05-29 18:43:41 -05:00
CMakeLists.txt [YAML Parser] Support parameter value parsing (#471) 2019-07-12 15:07:42 -03:00
package.xml [YAML Parser] Support parameter value parsing (#471) 2019-07-12 15:07:42 -03:00
README.md params -> ros__parameters 2018-06-18 21:37:16 -07:00

ROS2 rcl YAML paramter parser

Parse a YAML parameter file and populate the C data structure

The data structure params_st will then be used during node initialization

YAML parameter file should follow the yaml syntax shown below

NOTE: It only supports canonical int and float types

<node_namespace_string>:  # optional
  <node1_name>:
    ros__parameters:
      <field_name>: <field_value>
      <parameter_namespace_string>:   # optional
        <field1_name>: <field1_value>
        <field2_name>: <field2_value>
  <node2_name>:
    ros__parameters:
      <field_name>: <field_value>
      <parameter_namespace_string>:   # optional
        <field1_name>: <field1_value>
        <field2_name>: <field2_value>

This package depends on C libyaml