-
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
Support passing parameters as command line arguments #460
Comments
Is this the same thing as #370? |
I would prefer to see a more explicit parameter marker than I also do not care for using |
Yes, it is a duplicate. Thanks for pointing it out @jhdcs. @dirk-thomas I'd be inclined to close #370 as it's somewhat bare compared to this ticket in terms of description and discussion. Do you agree?
I understand. Over the course of last week, @wjwwood and I have been discussing about ROS 2 resource addressing in general (be them topics, services, actions, parameters, nodes). As a result of that, I've opened ros2/design#241 which I think reflects what the ideal state would look like.
Hmm, I'm not a big fan of the |
Feature request
Feature description
Currently, the only way to pass node parameters over the command line is via a YAML file. To improve usability, we'd like to be be able to pass key value pairs directly, as ROS1
rosrun
does. Grounds for this have to be established here and then leveraged in downstream client libraries (e.g.rclpy
andrclcpp
).As a proposal for a syntax and since ROS1 syntax e.g.
_name:=value
would be parsed as a ROS2 remapping rule, we could make use of a dotted'.'
equivalent.name:=value
(credits to @sloretz for it). For a usage example, consider:which would roughly equate to the following YAML file:
Implementation considerations
As a likely prerequisite, #246 has to be implemented first.
The text was updated successfully, but these errors were encountered: