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

Where to write the launch file

asked 2018-09-25 01:27:55 -0500

S.Yildiz gravatar image

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.

edit retag flag offensive close merge delete

Comments

1

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).

Delb gravatar image Delb  ( 2018-09-25 01:46:46 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-09-25 02:14:51 -0500

l4ncelot gravatar image

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
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2018-09-25 01:27:55 -0500

Seen: 1,088 times

Last updated: Sep 25 '18