Ask Your Question
0

How to use workspace installed package ignoring its binary installed version

asked 2018-06-25 14:00:05 -0600

himanshu.mib gravatar image

Actually in my case, I already have octomap_mapping package installed as a binary which I installed earlier using "sudo apt-get ros-kinetic-octomap-mapping". So I can directly evoke nodes associated to this package in my launch files once I source my ROS.

But I wanted to modify the code of the package and then use it but didn't want to edit the original library. So is there a way to have a locally installed version of the package in my workspace and use it somehow ignoring the preinstalled one?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-06-25 14:18:34 -0600

gvdhoorn gravatar image

updated 2018-06-25 14:21:22 -0600

So is there a way to have a locally installed version of the package in my workspace and use it somehow ignoring the preinstalled one?

What you ask is the default behaviour of packages in workspaces: whatever you place in your workspace will take precedence over what you installed using apt-get.


Edit: taking this a bit further: your Catkin workspace essentially overlays the /opt/ros/$distro directory (which basically is an install space).

edit flag offensive delete link more

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: 2018-06-25 14:00:05 -0600

Seen: 29 times

Last updated: Jun 25 '18