-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow non-ros parameters in params file #1149
Comments
I am not necessary against suggested approach. but i have a question. /turtlesim:
ros__parameters:
background_b: 3
other__parameters:
param_1: 1 it can also expect that how about the following case? just ignore? /**:
wildcard: true i think current behavior is not bad, it validate the parameter yaml file during purse. tomoyafujita@~/DVT/work >cat test.yaml
/turtlesim:
ros__parameters:
background_b: 3
other__parameters:
param_1: 1
tomoyafujita@~/DVT/work >yq 'del(.. | .other__parameters?)' test.yaml
/turtlesim:
ros__parameters:
background_b: 3 |
Thank you for your response!
In this case there might be a really small number of non-ROS parameters in the |
Related perhaps: ros2/launch_ros#382 (my own, I know, but still)? |
It's not clear to me what the best thing to do here is. I'm going to backlog this issue for now. We will probably have discussions about how this should be handled during the ROS 2 meeting in the near future. |
Feature request
Feature description
Allow non-ROS parameters to be disregarded by the YAML parser when running a node with
--ros-args --params-file <config-name>.yaml
Currently a node e.g. turtlesim crashes with a YAML file looking like this:
With the error:
Error: Cannot have a value before ros__parameters at line 5, at ./src/parse.c:793, at ./src/rcl/arguments.c:406
The parsing of the YAML file prevents easy integration in larger deployments where ros2 is only one of several middlewares being used. This implementation also prevents having one YAML file in larger deployments where a ros2 node is perhaps only a small part of the larger software stack.
Implementation considerations
The text was updated successfully, but these errors were encountered: