Create a new folder when generate a ROS .deb package
Hi to all,
I usually use to build ROS debian packages starting from my catkin workspace in order to be able to install it on other ROS systems.
Everything works fine even if I'm not able to specify in the CMakeList file how to create a new folder under /opt/ros/melodic/share/package_name
even if I'm successfully able to copy all the package file.
I try to explain it better: I would like to create some folders like launch (to store all the launch files) and params (to store all the yaml files) under the main package folder that is created in the share folder after the installation of the debian package.
Even if I specify the folder in this way:
## Mark cpp header files for installation
install(DIRECTORY
params/
launch/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)
## Mark other files for installation (e.g. launch and bag files, etc.)
install(FILES
launch/base.launch
launch/teleop.launch
launch/mode.launch
launch/readme
# # myfile2
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
when I try to install the debian package, all the launch files are just copied into the main package name folder, so, for example, I will have:
/opt/ros/melodic/share/my_package/base.launch
instead to have:
/opt/ros/melodic/share/my_package/launch/base.launch
how can I solve this?
Thank you a lot!