iKrishneel/octomap_server2

Build error: octomap_msgs/conversion.h missing

Opened this issue · 3 comments

Hi,
I have tried following the README guidelines to build the code, but after executing

$ colcon build --symlink-install --packages-select octomap_msgs octomap_server2

I get the following error:

fatal error: octomap_msgs/conversions.h: No such file or directory
42 | #include <octomap_msgs/conversions.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

I solved by running:

sudo apt install ros-foxy-octomap
sudo apt install ros-foxy-octomap-mapping

I think you are missing the 'conversion' message in octomap_msgs conversions.

Will it be possible to fix this bug and PR?

@biagio-trimarchi did you tried running octomap on ros-humble and do you have an instance or example of the successful run?

Hi, in the end the code I was working on worked just fine with the Octomap packages that are available with ROS2, i.e.

sudo apt install ros-foxy-octomap

sudo apt install ros-foxy-octomap-mapping

So I did not spent anymore time with this repo.
I have not tried humble yet, the project I am working on use foxy.