Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Unserialize MspMaps
  • Loading branch information
Thomas Dutrannois committed Sep 18, 2021
commit c9316ed527356e682fab67d70b813342f6ae3c5c
2 changes: 1 addition & 1 deletion include/Atlas.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Atlas
//ar.template register_type<KannalaBrandt8>();

//Save/Load all objects
ar & mspMaps;
//ar & mspMaps;
ar & mvpBackupMaps;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this necessary?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that you mention it, serializing mspMaps should not be required given that these are backed up in PreSave and rebuilt in PostLoad. I have not yet tested without that line if it works. If it's the case I'll make the change ;) Thanks !

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right, either mspMaps or mvpBackupMaps is ok. https://github.com/UZ-SLAMLab/ORB_SLAM3/pull/310/files#r627846281

//ar & mvpCameras;
ar & mvpBackupCamPin;
Expand Down