Where to write the launch file
I want to write a launch file for different nodes in different packages. But I don't know where to write it in the catkin_ws.
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
From here you can see the structure of regular catkin workspace with multiple packages.
workspace_folder/ -- WORKSPACE
build/ -- BUILD SPACE
devel/ -- DEVEL SPACE
src/ -- SOURCE SPACE
CMakeLists.txt -- 'Toplevel' CMake file, provided by catkin
package_1/
launch/ -- your launch folder
launch_file.launch -- your launch file
CMakeLists.txt -- CMakeLists.txt file for package_1
package.xml -- Package manifest for package_1
...
package_n/
launch/ -- your launch folder
launch_file.launch -- your launch file
CMakeLists.txt -- CMakeLists.txt file for package_n
package.xml -- Package manifest for package_n
Asked: 2018-09-25 01:27:55 -0600
Seen: 1,223 times
Last updated: Sep 25 '18
Generally you put it in a folder
launch
inside the package where it fits most. You can even create a package only containing your launch file(s) and some config files too (or anything you need).