ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
1

Install ROS Package Globally

asked 2014-08-08 08:59:16 -0500

rtoris288 gravatar image

I was wondering if it was possible to install a ROS package from source globally via catkin_make install? i.e., I would want the package installed into the /opt/ros/indigo/... location instead of the catkin workspace. The use case is for a package not in the build farm that we wanted all users on our robot to have access to.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2014-08-08 12:12:37 -0500

Dirk Thomas gravatar image

You can change the install location as for any CMake project ( http://www.cmake.org/cmake/help/v2.8.... ) by passing:

-DCMAKE_INSTALL_PREFIX=/your/install/path
edit flag offensive delete link more

Comments

This had been working for me historically. However, it seems as of late catkin is not respecting the -DCMAKE_INSTALL_PREFIX option. Is this a regression? I'm running the latest version of Indigo as of 4/24/15.

Tom Panzarella gravatar imageTom Panzarella ( 2015-04-24 11:04:27 -0500 )edit

OK. I have this sorted out now. It seems as though you need to specify the -DCMAKE_INSTALL_PREFIX when calling the install target instead of at compile time, which is what used to work. No big deal, just unexpected.

Tom Panzarella gravatar imageTom Panzarella ( 2015-04-24 11:30:42 -0500 )edit
4

answered 2014-08-08 11:47:12 -0500

ahendrix gravatar image

/opt/ros/indigo is managed by the package manager, and it may overwrite files and directories there at any time, so I don't recommend installing packages into /opt/ros/indigo. (conversely, if the package manager finds files there that it isn't managing, it may fail to install future packages.)

As an alternative, you can create a global overlay that isn't managed by the package manager, and install packages from source there. /opt/ros/indigo_overlay or /opt/ros/indigo_local might be a good choices.

edit flag offensive delete link more

Comments

Good point, I think I'll do that with the -DCMAKE_INSTALL_PREFIX

rtoris288 gravatar imagertoris288 ( 2014-08-08 13:15:42 -0500 )edit
1

We've used /opt/ros/indigo/local in the past for this type of thing, but there isn't a strong convention around it.

mikepurvis gravatar imagemikepurvis ( 2014-08-08 14:29:07 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

Asked: 2014-08-08 08:59:16 -0500

Seen: 318 times

Last updated: Aug 08 '14