iKrishneel / octomap_server2

ROS2 stack for mapping with OctoMap, contains octomap_server package
74 stars 33 forks source link

Build error: octomap_msgs/conversion.h missing #14

Open biagio-trimarchi opened 1 year ago

biagio-trimarchi commented 1 year ago

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.

iKrishneel commented 1 year ago

Will it be possible to fix this bug and PR?

Jaynkd commented 1 year ago

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

biagio-trimarchi commented 1 year ago

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.