octomap_server2 icon indicating copy to clipboard operation
octomap_server2 copied to clipboard

Build error: octomap_msgs/conversion.h missing

Open biagio-trimarchi opened this issue 2 years ago • 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.

biagio-trimarchi avatar May 16 '23 17:05 biagio-trimarchi

Will it be possible to fix this bug and PR?

iKrishneel avatar May 17 '23 01:05 iKrishneel

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

Jaynkd avatar May 23 '23 14:05 Jaynkd

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.

biagio-trimarchi avatar Jun 28 '23 17:06 biagio-trimarchi