Robotics StackExchange | Archived questions

How to use workspace installed package ignoring its binary installed version

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?

Asked by himanshu.mib on 2018-06-25 14:00:05 UTC

Comments

Answers

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).

Asked by gvdhoorn on 2018-06-25 14:18:34 UTC

Comments