mirellameelo / ORB_SLAM2_ROS_2

ORB SLAM 2 running with ROS 2
GNU General Public License v3.0
6 stars 1 forks source link

ament_target_dependencies() the passed package name 'ORB_SLAM2' was not found before #1

Open DDMichael opened 1 year ago

DDMichael commented 1 year ago

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.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)

Can you please let me know how to fix this issue?

Best wishes Daoming

Fasith-23 commented 8 months ago

hey, i tried to replicate this repo and got the same error as you, did u figure it out by any chance?