Skip to content

Support xml and yaml files in ros2launch#40

Merged
ivanpauno merged 6 commits intomasterfrom
ivanpauno/ros2launch-support-xml-yaml-files
Aug 1, 2019
Merged

Support xml and yaml files in ros2launch#40
ivanpauno merged 6 commits intomasterfrom
ivanpauno/ros2launch-support-xml-yaml-files

Conversation

@ivanpauno
Copy link
Copy Markdown
Member

What the title says.
The first commit doesn't depend on any PR. After the second commit, it depends on ros2/launch#271, which allows better error handling a cleaner code.

TODO: Add tests. I've tested locally, and it works fine.

Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
@ivanpauno ivanpauno added enhancement New feature or request in progress labels Jul 12, 2019
@ivanpauno ivanpauno requested a review from hidmic July 12, 2019 17:42
@ivanpauno ivanpauno self-assigned this Jul 12, 2019
@ivanpauno ivanpauno changed the title Support xml yaml files Support xml and yaml files in ros2launch Jul 12, 2019
Copy link
Copy Markdown

@hidmic hidmic left a comment

Choose a reason for hiding this comment

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

LGTM, though is it .launch.py or _launch.py? IIRC there were some discussions, and people were advocating for the latter (as a python script suffixed with .launch.py cannot be imported). @wjwwood ?

@sloretz
Copy link
Copy Markdown
Contributor

sloretz commented Jul 19, 2019

@hidmic ros2 launch tab completion works with both, though I was under the impression _launch.py was preferred too.

@wjwwood
Copy link
Copy Markdown
Member

wjwwood commented Jul 19, 2019

Personally I still like .launch.py as I don't foresee my self importing it often and/or I don't mind importing it with importlib. For xml and yaml there's no reason to _ instead unless we just want to use that everywhere. I don't remember where we left the conversion on what we recommend, but we didn't change any of the existing examples, e.g.:

https://github.com/ros2/demos/blob/dashing/demo_nodes_cpp/launch/topics/talker_listener.launch.py

Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
Copy link
Copy Markdown
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

lgtm, I'll re-review if you decide to refactor the error handling again.

@ivanpauno
Copy link
Copy Markdown
Member Author

CI (up to ros2launch launch launch_xml launch_yaml launch_ros test_launch_ros, only fastrtps):

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
@ivanpauno
Copy link
Copy Markdown
Member Author

  • Linux Build Status

@ivanpauno ivanpauno merged commit bb8fd1a into master Aug 1, 2019
@delete-merged-branch delete-merged-branch bot deleted the ivanpauno/ros2launch-support-xml-yaml-files branch August 1, 2019 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants