Thank you very much for providing such an useful tutorial on building ORB_SLAM2 with ROS2. I tried to follow your tutorial but I got stuck in the final steps of the building procedure.
My environment is as follows: ubuntu 22.04 LTS, ROS2 Iron
I was able to compile ORB_SLAM2 source code successfully, and after I type sudo make install, I believe the libs were installed in the following directory: /usr/local/lib/libORB_SLAM2.so
After that, I attempted to build the ROS2 system with colcon build. I received an error as follows:
CMake Error at /opt/ros/iron/share/ament_cmake_target_dependencies/cmake/ament_target_dependencies.cmake:77 (message):
ament_target_dependencies() the passed package name 'ORB_SLAM2' was not
found before
Call Stack (most recent call first):
CMakeLists.txt:43 (ament_target_dependencies)
Hello mirellameelo,
Thank you very much for providing such an useful tutorial on building ORB_SLAM2 with ROS2. I tried to follow your tutorial but I got stuck in the final steps of the building procedure. My environment is as follows: ubuntu 22.04 LTS, ROS2 Iron I was able to compile ORB_SLAM2 source code successfully, and after I type
sudo make install
, I believe the libs were installed in the following directory: /usr/local/lib/libORB_SLAM2.soAfter that, I attempted to build the ROS2 system with
colcon build
. I received an error as follows:CMake Error at /opt/ros/iron/share/ament_cmake_target_dependencies/cmake/ament_target_dependencies.cmake:77 (message): ament_target_dependencies() the passed package name 'ORB_SLAM2' was not found before Call Stack (most recent call first): CMakeLists.txt:43 (ament_target_dependencies)
Can you please let me know how to fix this issue?
Best wishes Daoming