Is there any way to load a g2o file posegraph in matlab?
조회 수: 4 (최근 30일)
이전 댓글 표시
I am wondering if there is any way to load a posegraph (available in the form of g2o file) in MATLAB and also store the optimized pose graph in a file? I have searched for it in official documentation but there is no answer to this.
답변 (2개)
Zheng Dong
2023년 12월 6일
Hi Haris,
Unfortunately, there is no existing tool which supports importing a g2o file to be a poseGraph object. I have created an enhancement task based on your request. Our team will consider enabling this functionality in the future.
However, there is a function importFactorGraph which accpets g2o files and it will create a factorGraph object based on the g2o file. Factor graph is a powerful frame we currently work on which is similar to poseGraph but supports much more kinds of edges and different SLAM workflows. You can give it a try if you are interested.
Besides, you can store optimized poseGraph by
save('new','updatedPG')
It will save the updated poseGraph (updatedPG) to the new.mat file.
Best,
Zheng
댓글 수: 0
Remo Pillat
2023년 12월 6일
Another option would be to look at Peter Corke's RVC3 toolbox. It has a function, g2oread, which implements what you are asking for. In addition to returning a poseGraph object, it can also extract lidar scans that may be stored in the g2o file.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!