Skip to content

Update tutorials to use the new command line syntax#376

Merged
clalancette merged 4 commits intomasterfrom
ivanpauno/update-command-line-syntax
Oct 24, 2019
Merged

Update tutorials to use the new command line syntax#376
clalancette merged 4 commits intomasterfrom
ivanpauno/update-command-line-syntax

Conversation

@ivanpauno
Copy link
Copy Markdown
Member

  • I don't know if my approach to keep the tutorial backwards compatible is quite nice.
  • Parameter grouping isn't working correctly from the command line, e.g.:
    ros2 run demo_nodes_cpp parameter_blackboard --ros-args -p "some_lists.some_integers:=[1, 2, 3, 4]"
    Fails printing: [ERROR] [rcl]: Failed to parse global arguments.
    We have to correct that before merging.

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@ivanpauno ivanpauno requested a review from hidmic October 23, 2019 16:06
@ivanpauno ivanpauno self-assigned this Oct 23, 2019
@mjcarroll mjcarroll temporarily deployed to ros2-documentation-pr-376 October 23, 2019 16:06 Inactive
@mjcarroll mjcarroll temporarily deployed to ros2-documentation-pr-376 October 23, 2019 16:11 Inactive
Copy link
Copy Markdown
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found one syntax error.

.. code-block:: bash

ros2 run demo_nodes_cpp talker __ns:=/demo __node:=my_talker chatter:=my_topic
ros2 run demo_nodes_cpp talker --ros-args -r __ns:=/demo -r __node:=my_talker chatter:=my_topic
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ros2 run demo_nodes_cpp talker --ros-args -r __ns:=/demo -r __node:=my_talker chatter:=my_topic
ros2 run demo_nodes_cpp talker --ros-args -r __ns:=/demo -r __node:=my_talker -r chatter:=my_topic

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Addressed in 958031e.

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
@mjcarroll mjcarroll temporarily deployed to ros2-documentation-pr-376 October 24, 2019 12:52 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants