dso icon indicating copy to clipboard operation
dso copied to clipboard

How can I save trajectory of ALL frames

Open JeffreyYH opened this issue 6 years ago • 6 comments

Hi JaKob,

I would like to ask how can I save trajectory of all frames instead of just keyframes?

Thanks you!

JeffreyYH avatar Apr 25 '18 07:04 JeffreyYH

Hi,Jeffrey,

I am writing a little of blog about slam, and encounter some problems.

No matter keyframes or trajectory data, all for Pose optimization or where are camera.

if you want save trajectory data of all frames, first, you should konw what to save.

second, you should know What data structure is used.

last, answer the above two question.

thanks you.

***** 王包东 ***** ** 15507553214 ** [email protected]


From: Jeffrey Hu Date: 2018-04-25 15:25 To: JakobEngel/dso CC: Subscribed Subject: [JakobEngel/dso] How can I save trajectory of ALL frames (#136) Hi JaKob, I would like to ask how can I save trajectory of all frames instead of just keyframes? Thanks you! ― You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

070411209 avatar Apr 25 '18 08:04 070411209

Hi @JeffreyYafeiHu,

write your own Output3DWrapper, see also SampleOutputWrapper.

Cache all poses of all frames in, e.g., a std::map<Frame ID, Frame Pose>. Keep your Frame Poses up to date (on function publishKeyframes and publishCamPose) and dump the std::map to a file at the end (use the join and/or the reset function).

cheers

s3r637 avatar Apr 26 '18 07:04 s3r637

Dear @s3r637, thanks for the response to @JeffreyYafeiHu, I tried to implement your advice, but I have one question: once a keyframe is updated (i.e., publishKeyframes is called), should I also update all the poses related to this Keyframe?

madmage avatar Aug 07 '18 16:08 madmage

Hi @madmage,

what do you mean by "all the poses related to this Keyframe"? A Keyframe has only one (absolute) pose (related to the first Keyframe).

cheers

s3r637 avatar Sep 26 '18 19:09 s3r637

@JeffreyYH @070411209 @s3r637 @madmage

I want the camera poses of every frame in results.txt so can you please provide me the changes in code.?

I will be thankful to you.

DRAhmadFaraz avatar Oct 16 '19 09:10 DRAhmadFaraz

Hi @DRAhmadFaraz,

please take a look into the provided README file and going through the existing issues should also very useful to reach your goal faster.

cheers

s3r637 avatar Oct 17 '19 11:10 s3r637