Isaac ROS packages build error with "magic_enum.hpp: No such file or directory"

Hello, @Ahung.

I solved this problem by adding include_directories(/opt/ros/humble/include) in every CMakeLists.txt that the build error occurs.
magic_enum.hpp is generated in /opt/ros/humble/include in my device as well, but seems like colcon cannot find that file while building.
This problem might be related to known issue: No /opt/ros/humble/install directory in Docker container

This was reproduced in following devices:

  • Jetpack 6.0 & Isaac ROS 3.1 installed Nova Orin Developer Kit
  • x86_64 device with Ubuntu 22.04
  • x86_64 device with Ubuntu 20.04

Thanks for your help.

Best regards.