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

catkin_make install copy files to default ROS folder

asked 2018-01-02 05:18:55 -0500

tanasis gravatar image

Hello,

Let's assume ROS Indigo distro. Let's assume its default location is /opt/ros/indigo. Let's assume I create a new project (package) and I invoke catkin_make install. This will create the folder install in my catkin workspace with the necessary files in it.

Question: Can I copy the files from the install folder to the /opt/ros/indigo and afterwards not use the package from my catkin workspace (i.e. like the ones you install from rosdep)? The folder structure seems almost (if not) identical. Assuming here of course unique package name to avoid overriding.

Please note the question is _not_ why I would do this, but _if_ I can do this. (But maybe since someone might curious, I am considering in creating a .deb file to easily distribute it.)

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-01-02 09:18:44 -0500

joq gravatar image

You can (assuming sudo privileges), but it's not a good idea. Future updates to the packages in /opt/ros/indigo as likely to break things, because the dpkg database does not include your added files and will not know how to handle them correctly.

There are excellent tools for creating your own binary packages, which do no suffer from these problems:

edit flag offensive delete link more

Comments

Initially I thought so too. But then looking inside a .deb file (e.g. apt-get download ros-indigo-pcl-msgs) you will see that it is basically doing the same thing (assuming unique package names). Thanks for pointing to bloom. In my case I need to distribute this internally. Any pointers forthat?

tanasis gravatar image tanasis  ( 2018-01-03 05:40:28 -0500 )edit

The easiest path is to use the ROS buildfarm, but that would make your packages visible externally. If that's a problem, then you can run the buildfarm on your own computers. I'd start by contacting the buildfarm mailing list..

joq gravatar image joq  ( 2018-01-03 11:13:24 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-01-02 05:18:55 -0500

Seen: 862 times

Last updated: Jan 02 '18