Open tbadave opened 1 year ago
Obviously, this error occurs since OpenCV can not be detected. The possible reasons are:
To check if it is installed, run pkg-config --modversion opencv
in the terminal to see if the version shows on the screen. If not installed, you need to install it, and I suggest you can install the version of 3.2.0. Because previously I tried to use OpenCV 4.4.0 to run ORB_SLAM3 in ROS and I failed.
Search on Google or browse the other issues under this repo to find solutions
you can read the CMakeList.txt
, OpenCV needs a specific version of 4.4, but if you want, you can just change it to 4 or 4.x based on the version on your pc
I met different errors
import pyparsing as pp
File "/opt/ros/noetic/lib/python3/dist-packages/pyparsing/__init__.py", line 100
major: int
^
SyntaxError: invalid syntax
CMake Error at /opt/ros/noetic/share/ros/core/rosbuild/private.cmake:77 (message):
[rosbuild] Syntax check of ORB_SLAM2/manifest.xml failed; aborting
Call Stack (most recent call first):
/opt/ros/noetic/share/ros/core/rosbuild/public.cmake:174 (_rosbuild_check_manifest)
CMakeLists.txt:4 (rosbuild_init)
-- Configuring incomplete, errors occurred!
it seems due to different python version? I'm using ubuntu 20.04 and ros noetic
Change the CMakeList.txt in the ROS/ORB_slam folder. Add find_package(OpenCV 4.0 REQUIRED)
and remove the 2.4.3 Opencv in the CMakeList.txt.
Hello everyone,
I have been trying to run ORB SLAM 3 for ROS (using
build_ros.sh
) but I'm encountering the following error. I was able to build ORB SLAM 3 (usingbuild.sh
) though.For building ORB SLAM 3 for ROS, I performed the steps as mentioned in the readme i.e.
.bashrc
file to include/ORB_SLAM3/Examples_old/ROS
path to the ROS_PACKAGE_PATH environment variable.chmod +x build_ros.sh
./build_ros.sh
However, this is the error I'm seeing:
Current System:
Any help would be much appreciated. Thanks!