iKrishneel / octomap_server2

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

Eigen3 build error and simple octomap install in ros2 #21

Closed GLtangzero closed 2 months ago

GLtangzero commented 2 months ago

About this problem like: $ colcon build --symlink-install --packages-select octomap_msgs octomap_server2 [0.105s] WARNING:colcon.colcon_core.package_selection:Some selected packages are already built in one or more underlay workspaces: 'octomap_msgs' is in: /opt/ros/humble If a package in a merged underlay workspace is overridden and it installs headers, then all packages in the overlay must sort their include directories by workspace order. Failure to do so may result in build failures or undefined behavior at run time. If the overridden package is used by another package in any underlay, then the overriding package in the overlay must be API and ABI compatible or undefined behavior at run time may occur.

If you understand the risks and want to override a package anyways, add the following to the command line: --allow-overriding octomap_msgs

This may be promoted to an error in a future release of colcon-override-check. Starting >>> octomap_msgs Finished <<< octomap_msgs [2.86s]
Starting >>> octomap_server2 [2.969s] WARNING:colcon.colcon_core.shell:The following packages are in the workspace but haven't been built:

Summary: 1 package finished [10.5s] 1 package failed: octomap_server2 1 package had stderr output: octomap_server2

The way to solution is find the octomap_server2/include/octomapserver2/transforms.hpp and change the #include <eigen3/Eigen/Eigen> to #include <Eigen/Dense>_

GLtangzero commented 2 months ago

Finished

GLtangzero commented 2 months ago

ros2: sudo apt-get install ros-humble-octomap-ros sudo apt-get install ros-humble-octomap-msgs sudo apt-get install ros-humble-octomap-server

rviz interface: sudo apt-get install ros-humble-octomap-rviz-plugins