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

How to use workspace installed package ignoring its binary installed version

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

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 -0500

gvdhoorn gravatar image

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

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

Question Tools

Stats

Asked: 2018-06-25 14:00:05 -0500

Seen: 115 times

Last updated: Jun 25 '18