Ask Your Question
0

Best way to add new package to ROS that was installed from source (rosinstall_generator)

asked 2017-04-15 21:52:19 -0500

HeZlah gravatar image

HI all,

I have built ROS kinetic from source on my pi using the instructions http://wiki.ros.org/ROSberryPi/Instal...

What is the best way for me to install an additional package without needing to recompile the entire workspace? The last section in the installation guide describes how to add additional packages, however that just adds them to the workspace and then catkin make will rebuild everything.

The rosinstall_generator page makes it clear how I can generate a rosinstall file for packages not in the current environment (I guess this is what I want?) however this just adds them to the workspace and again, catkin make rebuilds everything.

So is there a way to get catkin_make_isolated to just build and install new packages? Or should I be creating a new workspace and use the --exclude RPP to get the new packages I want to install? The latter sounds messy, I would rather just have one workspace with my entire build.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-04-15 22:50:04 -0500

ahendrix gravatar image

catkin_make_isolated is invoked on the entire workspace, but it only rebuilds the things that are new or changed, so adding new packages and recompiling the workspace should be reasonably quick.

edit flag offensive delete link more

Comments

Weird, I don't know why it always rebuilds everything then..So I should be able to : rosinstall_generator newpackage --deps --exclude RPP | wstool merge -t src - then wstool update -t src

HeZlah gravatar image HeZlah  ( 2017-04-15 23:03:27 -0500 )edit

And then sudo ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space, and it should build and install only newpackage?

HeZlah gravatar image HeZlah  ( 2017-04-15 23:04:59 -0500 )edit

It will re-run cmake for the workspace to rebuild the dependency graph, and then only rebuild the packages that are new or changed.

ahendrix gravatar image ahendrix  ( 2017-04-15 23:06:41 -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

Stats

Asked: 2017-04-15 21:52:19 -0500

Seen: 548 times

Last updated: Apr 15 '17