Robotics StackExchange | Archived questions

how can i change the source of octomap

Dears

thank you for Solrac3589 for his answer about installing Octomap on Ros-Melodic.

Later i have colned the octomap_server to Catkin_ws folder beside to my package, then i include the content of octomap_mapping.launch file in my package launch file and the thing gone good, i can change the source of octomap_server without any problem, but when i am trying to change the source of octomap file like this function bool OcTreeBaseImpl<NODE,I>::computeRayKeys which located in OcTreeBaseImpl.hxx file, the editor -where i use VS code- ask me to be a super admin to save that changes, when i confirm the VS-Code request the PC not respond and i have to restart my PC. i think that i need to install the octomap from source beside my package, but i don't know how to build it using cmake and use it in ROS, any suggestion please

Asked by MjdKassem on 2020-11-16 05:45:17 UTC

Comments

Answers

If you need to install something from source on top of an existing installation we call that an overlay and there's tutorials about that here: http://wiki.ros.org/catkin/Tutorials/workspace_overlaying

It is highly not recommended to edit the installed files in /opt using super user permissions

Asked by tfoote on 2020-11-16 17:46:24 UTC

Comments

thank you dear, now i have octomap_server package with roscd octomap_server i get ~/catkin_ws/src/octomap_mapping/octomap_server it is good, but with roscd octomap i get /opt/ros/melodic/share/octomap, how can i point to octomap which i have build from source from the source of octomap_server

Asked by MjdKassem on 2020-11-22 05:52:47 UTC