-
Notifications
You must be signed in to change notification settings - Fork 29
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
About g2o in the project #7
Comments
Hi, I kind of forgot the reason, but I believe it's because the new version of g2o uses smart pointers in its code. I've also implemented it in some of the code. You can find an example here: Lines 77 to 79 in 5298376
Using smart pointers can help prevent memory leaks, especially in optimization processes where you might create numerous new vertices and edges, potentially consuming a significant amount of memory. I can't recall whether the older g2o library would lead to a program crash, but I suspect that this could be the reason behind the issue with ORB-SLAM3 + instant-ngp crashing during the PoseOptimization function. |
Thanks for your reply. I will try the new version of g2o later.
These code will cause the problem when I use the g2o of ORB-SLAM3:
|
My project is able to use nlohmann because it is under my Thirdparty (instant-ngp-kf -> dependencies -> tiny_cuda_nn -> dependencies -> json) You may need to add it to your Thirdparty and modify your CMakeLists.txt. |
Hello, have you successfully combined ORB-SLAM3 and instant-ngp? Thank you very much for your reply. |
Hello, thanks for your great work!
Now, I want to combine ORB-SLAM3 and instant-ngp. However, the project aborted in the function of PoseOptimization. I found that the g2o library in Orbeez-SLAM is different from original ORB-SLAM2. Why do not you use the g2o library of original ORB-SLAM2?
I link the libg2o.so of ORB-SLAM3 in the same way as libDBoW2.go. I think the problem is caused by g2o. But I do not know how to fix it.
The text was updated successfully, but these errors were encountered: