ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

ros2 launch xml example

asked 2020-01-06 11:35:32 -0600

johnconn gravatar image

updated 2020-01-06 11:46:03 -0600

gvdhoorn gravatar image

I see that a yaml and xml front-end was added to ros2. In the feature request I see that there was intent to add support for these to the ros2launch cli, but I am struggling to create a .launch.xml file and launch it with ros2launch

Are there any full examples of creating an xml launch file and then using the launch cli tool to run it? The design document and the test here show me the syntax, but I'm still unsuccessful.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2020-03-20 07:22:55 -0600

ivanpauno gravatar image

There is a tutorial about how to migrate launchfiles from ROS1 to ROS2: https://index.ros.org/doc/ros2/Tutori....

There are some XML examples in the demos, e.g. in this folder: https://github.com/ros2/demos/tree/ma....

It would be a great contribution to add more examples to the demos.

About your questions in the github issue:

If I have a launch file, how can I get it running?

ros2 launch /path/to/file_launch.xml

Do I need to create a package, do I need to add it in package.xml whatsoever...

No necessarily, as commented above. If you do want to install some launchfiles with a package, you can:

In those cases, you will be able to do:

ros2 launch package_name name_of_launch_file_launch.xml

In case you have problems running a specific launchfile, you can copy it here and I will try to help.

Best,

Ivan

edit flag offensive delete link more

Comments

1

That worked, thanks! Nonetheless, I would add it somewhere on index.ros.org

urczf gravatar image urczf  ( 2020-03-24 11:11:30 -0600 )edit
0

answered 2020-03-06 06:27:14 -0600

urczf gravatar image

updated 2020-03-20 04:13:21 -0600

I filed a github issue, there is a person assigned to it. Therefore, we just to be patient (as for corona): https://github.com/ros2/launch_ros/is...

edit flag offensive delete link more

Comments

yeah this is was my output. Your post seems more suited as a comment not an answer

johnconn gravatar image johnconn  ( 2020-03-06 08:17:38 -0600 )edit

True so. My bad. I edited the answer.

urczf gravatar image urczf  ( 2020-03-20 04:13:40 -0600 )edit

Question Tools

6 followers

Stats

Asked: 2020-01-06 11:35:32 -0600

Seen: 2,462 times

Last updated: Mar 20 '20