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

How to put a launch file?

asked 2015-06-17 20:59:47 -0500

psprox96 gravatar image

Hi all.

I'm trying to create a launch file as part of Hokuyo TF.

<launch>
  <node pkg="tf" type="static_transform_publisher" name="odom_to_base_link" args="0 0 0 0 0 0 odom base_link 100" />
  <node pkg="tf" type="static_transform_publisher" name="US6" args="0 7 2 1.5708 0 0 base_link laser 100" />
</launch>

Credits to Malefitz for the codes.

However, I'm wondering where should I copy the .launch file to.

Thanks for any help!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-06-17 21:27:14 -0500

130s gravatar image

Put launch files into the package you pass as the 1st argument.

$ roslaunch [package] [filename.launch]

As noted in the tutorial, roslaunch command automatically looks into the passed package and detect available launch files.

edit flag offensive delete link more

Comments

Thanks! I got it!

psprox96 gravatar image psprox96  ( 2015-06-17 21:37:23 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-06-17 20:59:47 -0500

Seen: 740 times

Last updated: Jun 17 '15