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

avoid copying of data when dealing with observations #1138

Open
wants to merge 2 commits into
base: noetic-devel
Choose a base branch
from

Conversation

dorezyuk
Copy link
Contributor

@dorezyuk dorezyuk commented Jul 9, 2021

Hey,

I've noticed that we create a deep copy of the point clouds every time we are querying to get the observations. I've exchanged the raw pointer to a const shared pointer (we do not modify the observations).

Additionally I've changed the box-filter algorithm to work without an additional buffer.

The changes reduced the CPU load of a mbf-node (just running the voxel layer) on my system by ~7% (its not much, but...)

Best,
Dima

@dorezyuk dorezyuk force-pushed the dima/observation_buffer branch from 83477f3 to fb19b25 Compare July 9, 2021 11:45
@dorezyuk dorezyuk force-pushed the dima/observation_buffer branch from fb19b25 to 17a889b Compare July 9, 2021 13:07
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.

1 participant