Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why #147

Open
chuichuiY opened this issue Sep 14, 2024 · 18 comments
Open

why #147

chuichuiY opened this issue Sep 14, 2024 · 18 comments

Comments

@chuichuiY
Copy link

2024-09-15 00-11-12屏幕截图

@xukuanHIT
Copy link
Collaborator

@chuichuiY Hi, have you installed OpenCV?

@chuichuiY
Copy link
Author

@chuichuiY你好,你安装了OpenCV吗?

yes,I downloaded opencv4.2.0 and this problem occurred when compiling AIRSLAM.

@xukuanHIT
Copy link
Collaborator

OpenCV is not found when compiling DBoW2. Can you check your installation of the OpenCV? For example, can you find the path of OpenCV ".hpp" and ".so" files on your computer?

@chuichuiY
Copy link
Author

image

@xukuanHIT
Copy link
Collaborator

They are building results. Have you installed them?

@chuichuiY
Copy link
Author

OpenCV is not found when compiling DBoW2. Can you check your installation of the OpenCV? For example, can you find the path of OpenCV ".hpp" and ".so" files on your computer?

opencv4.x only has the opencv.hpp file

@xukuanHIT
Copy link
Collaborator

@chuichuiY
Copy link
Author

image

They are building results. Have you installed them?

@xukuanHIT
Copy link
Collaborator

Can you find opencv2/opencv.hpp?

@chuichuiY
Copy link
Author

Can you find opencv2/opencv.hpp?

yes ,@WP:~/opencv-4.2.0/include/opencv2/opencv.hpp

@xukuanHIT
Copy link
Collaborator

xukuanHIT commented Sep 18, 2024

OK, can you find the OpenCVConfig*.cmake in /usr/local/cmake/opencv4?

@chuichuiY
Copy link
Author

OK, can you find the OpenCVConfig*.cmake in /usr/local/cmake/opencv4?

/usr/local/stow/absl/lib/cmake/opencv4/OpenCVConfig-version.cmake
/usr/local/stow/absl/lib/cmake/opencv4/OpenCVConfig.cmake

@xukuanHIT
Copy link
Collaborator

I am not sure why the Cmakelist can not find your opencv. You can set the path in the Cmakelist using "set(OpenCV_DIR /usr/local/stow/absl/lib/cmake/opencv4)". You can also create a small project to test whether your opencv can be linked correctly.

@chuichuiY
Copy link
Author

I am not sure why the Cmakelist can not find your opencv. You can set the path in the Cmakelist using "set(OpenCV_DIR /usr/local/stow/absl/lib/cmake/opencv4)". You can also create a small project to test whether your opencv can be linked correctly.

Thank you so much. It is true that DBOW2 cannot find my opencv, and it can be compiled successfully after modification. I would like to ask what data sets this can run on, and do I need to use rosbag to run it?

@chuichuiY
Copy link
Author

1726675087596

@xukuanHIT
Copy link
Collaborator

Please use the original dataset. We use the image name to get the time stamp

@chuichuiY
Copy link
Author

1726675087596
Is this error due to the data set? I changed the name of the MH01 data and the .launch file as required.

@xukuanHIT
Copy link
Collaborator

Please use the original dataset. Don't change the image name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants