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

SuchConfuse's profile - activity

2021-08-07 13:52:03 -0500 received badge  Self-Learner (source)
2021-08-07 13:52:03 -0500 received badge  Teacher (source)
2021-04-20 09:37:48 -0500 received badge  Famous Question (source)
2020-12-18 03:23:51 -0500 received badge  Notable Question (source)
2020-12-17 04:10:48 -0500 commented answer How to create a package that only contains launch files

Thanks, this is better than adding the files each individually.

2020-12-16 17:16:48 -0500 marked best answer How to create a package that only contains launch files

I want to create a package that only holds launch files for packages that I installed using apt-get. Let's say my package, called ros-package has the following folder structure:

.
├── CMakeLists.txt
├── launch
│   ├── a.launch
│   ├── all.launch
│   ├── b.launch
│   └── c.launch
└── package.xml

I want a.launch, b.launch, and c.launch each look something like this:

<launch>
    <node name="listener_node" pkg="hello_world" type="listener" output="screen"/>
</launch>

and all.launch just includes the other three and launches all of them. So I want to be able to "build" this package with catkin or colcon, source install/setup.bash, and run all with the following command:

roslaunch ros-package all.launch

Now I'm not sure how to setup the CMakeLists.txt and package.xml files to achieve this. Any help would be much appreciated.

With anything I've attempted the launch files don't get included in the install directory and are not found as a result.

Bonus question: I also have a config.yml file that I want to be copied into the install directory as well as it is passed on as an argument to one of the launch files.

2020-12-16 17:16:48 -0500 received badge  Scholar (source)
2020-12-16 17:16:31 -0500 received badge  Supporter (source)
2020-12-15 09:41:11 -0500 answered a question How to create a package that only contains launch files

So it turns out I was having problems due to a typo in my launch file name. To answer the question, my package.xml only

2020-12-15 09:30:54 -0500 received badge  Popular Question (source)
2020-12-14 18:29:19 -0500 received badge  Rapid Responder (source)
2020-12-14 17:53:25 -0500 asked a question How to create a package that only contains launch files

How to create a package that only contains launch files I want to create a package that only holds launch files for pack