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.
Asked by S.Yildiz on 2018-09-25 01:27:55 UTC
Answers
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 by l4ncelot on 2018-09-25 02:14:51 UTC
Comments
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).Asked by Delb on 2018-09-25 01:46:46 UTC