Is there any way to load a g2o file posegraph in matlab?

4 ビュー (過去 30 日間)
Haris Khan
Haris Khan 2021 年 7 月 8 日
回答済み: Remo Pillat 2023 年 12 月 6 日
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.
  1 件のコメント
晓航 邵
晓航 邵 2022 年 6 月 6 日
G = importFactorGraph("factorGraphLog.g2o");
This may help.

サインインしてコメントする。

回答 (2 件)

Zheng Dong
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

Remo Pillat
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.

カテゴリ

Help Center および File ExchangeLocalization Algorithms についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by