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 -0500
Seen: 1,101 times
Last updated: Sep 25 '18
Gazebo world not reset on fresh launch
How to subscribe two topics and publish a topic?
Roslaunch can't locate node, but rosrun works fine
How to record robot trajectory?
waitForTransform fails in Callback
Unable to install because of missing ninja
ros2 launch creates two nodes of same type
Visualize 2d objects in 2d image in rviz
Not able to create a map using SLAM Mapping( Kobuki+Hokuyo UST-10LX)
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).