-
Notifications
You must be signed in to change notification settings - Fork 8
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
Make Error at midas_cpp/CMakeLists.txt:56 (find_package): By not providing "FindTorch.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Torch", but CMake did not find one. #3
Comments
It seems the issue is that LibTorch in C++ was not found. However, you can refer to the README at https://github.com/geturin/MiDaS/tree/master/ros for installation guidance. There you will find more detailed instructions on how to install it. |
This issue might be due to a version inconsistency. 1.Eigen Version Mismatch: ORB_SLAM3 requires a minimum Eigen version of 3.1.0. You can check the Eigen version used in your ORB_SLAM3 installation by searching through the ORB_SLAM3 issues. If you find a similar error, it could be related to your version of Eigen. However, if you were able to compile ORB_SLAM3 independently, then Eigen might not be the problem. 2.Incompatible Versions of ORB_SLAM3 and orb_slam3_ros_wrapper: In my project, I use older versions of these libraries. There have been significant changes in ORB_SLAM3 after version 1.0, making it incompatible with the older versions of orb_slam3_ros_wrapper. In the README, I have included a step to roll back ORB_SLAM3 to v0.4beta. Please ensure that you have followed this step. |
Ok, thank you for your answer. I will roll back the orbslam3 version later and then rebuild it to verify its feasibility |
I think you forgot running |
I ensure that I have configured according to your project steps, but when I run "roslaunch oafd slam. launch" in the end, I will crash and run "roslaunch ego"_ I couldn't find the file when trying to 'tell. launch' |
I apologize for another unclear section in my README. In ROS, if you are already in the directory containing the target launch file, you can directly use |
But when I run the "roslaunch oafd slam. launch" command, it seems like I will crash. Is this normal.The error screenshot has been sent above. |
There are various reasons that could lead to this error, including dependency version mismatches and hardware issues. To diagnose the problem, it's recommended to run a demo following the instructions in the ORB SLAM3 README. Try running the provided configuration files from the official source to determine the source of the issue. |
No, they refer to the same workspace. orb_slam3_ros_wrapper is a package that needs to be compiled with catkin build and should be located in the catkin_build workspace. |
Regarding the error with orb_slam3_ros_wrapper, the reason is that ORBvoc.txt cannot be found. Please check the operations about this part in the README again. Regarding the error with ego_planner, it's because you have not switched to the ego_planner's workspace. You should first execute |
In ROS, if you execute the error with ORB_SLAM3, without detailed information, there are too many possibilities. Can you start ORB_SLAM3 independently? |
Orbslam3 has no problem running the test data set independently |
Or you can record a GIF or video of the running steps for me |
about ROS not recognizing multiple workspaces, you can check I reproduced your issue and then entered the command; it works
|
Yes, your method is feasible, but running "roslaunch oafd slam.launch" still exits abnormally. My ROS version is noetic, may I ask if it is running normally on your end? Or you can record a short video for me to refer to |
I can run it normally, and I can also record the startup operation for you. but i think that the orb_slam3 process is died not related to how you launch this file. This situation is more likely caused by changes in the versions of various dependencies. First, you can check if there's an issue with the configuration file of my project. You should run the example in the orb_slam3_ros_wrapper README.
If running the example also results in an error, you should refer to similar issues in the orb_slam3_ros_wrapper repository to check. there is mentioned here that the issue might be related to the version of OpenCV. |
It seems that this error will also appear when running MH_01_easy.bag, and mapviewer will crash. My opencv version is 4.5.5. The specific demonstration is as follows. |
My OpenCV version is 4.5.3. Although I can't be sure if the issue is related to the OpenCV version, perhaps you could try reinstalling OpenCV and recompiling ORB_SLAM3. Then, from the folder picture you provided earlier, it seems you only have two workspaces, catkin_ws and ego-planner. Did you compile your orb_slam3_ros_wrapper using |
As you mentioned before, "catkin_ws" and "catkin_build" are the same workspace. Do you mean that normally there should be three workspaces: "catkin_ws", "catkin_build" and "ego-planner"? |
Perhaps my previous answer was not clear enough. Yes, if you follow the README exactly, you will need three workspaces. |
The directory structure seems to be fine, so the issue is likely due to differences in the versions of some dependencies. I have no clue about this, as I've never encountered a similar error in my environment. There are some issues in the original repository of orb_slam3_ros_wrapper that are similar to your situation. You can refer to their methods to solve the problem. They managed to eliminate the error by changing the versions of OpenCV, Pangolin, or ORB_SLAM3. Two operations are mentioned frequently in the issues:
I might try changing the dependency to ORB_SLAM3 V1.0 or building a Docker image to avoid environmental issues. However, I can only work on this in my spare time. |
I didn't see any errors in the picture, there's a WARNING about not initializing |
I'm having trouble reproducing your project, can you help me take a look? This error occurs when midas is installed, when I run the command "./do_catkin_make.sh", it gives the following error: CMake Error at midas_cpp/CMakeLists.txt:56 (find_package):
By not providing "FindTorch.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Torch", but
CMake did not find one.
The text was updated successfully, but these errors were encountered: