Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reduce the memory consumed by the inflation layer #40

Merged
merged 4 commits into from
Jun 12, 2024

Conversation

facontidavide
Copy link

Background

InflationLayer uses a lot of memory for large maps and this memory is never freed.

The image below is the total meory used by our application using a very large map ( 200 MB)

2024-06-12_11-27

After this change, the change in used memory is dramatic

2024-06-12_11-31

@doisyg
Copy link

doisyg commented Jun 12, 2024

Great gains confirmed on A17 with the GXO maps (and a test image).
image
So 2GB gain on the big GXO map at 0.05 resolution.
Also tested the inflation layer behavior (updates are working) in simulation, all good.
This can now makes its way to nav2 upstream if you want to open a PR @facontidavide

@facontidavide
Copy link
Author

This can now makes its way to nav2 upstream if you want to open a PR

ros-navigation#4424

@facontidavide facontidavide merged commit c986865 into bau Jun 12, 2024
5 checks passed
@facontidavide facontidavide deleted the dfaconti/inflation_optimization branch June 12, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants