Skip to content
This repository has been archived by the owner on Feb 25, 2021. It is now read-only.

When to delete the "prepared erasing" landmarks? #392

Open
vzhr opened this issue Jul 7, 2020 · 1 comment
Open

When to delete the "prepared erasing" landmarks? #392

vzhr opened this issue Jul 7, 2020 · 1 comment

Comments

@vzhr
Copy link

vzhr commented Jul 7, 2020

Hi!
After we calling "landmark::prepare_for_erasing()", when can delete the landmark object? With the time our SLAM increasing, the memory will be occupied much bigger.

@ymd-stella
Copy link
Contributor

ymd-stella commented Jul 19, 2020

After we calling "landmark::prepare_for_erasing()", when can delete the landmark object?

You can delete landmarks that are no longer referenced by the object.
(If you want to find out more, experiment by #139 might be useful.)

With the time our SLAM increasing, the memory will be occupied much bigger.

#139 resolves this memory resource problem. (shared_ptr releases unreferenced objects.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants