You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Levi-Armstrong
changed the title
The ContactResultsMap results in a significant amount of heap allocation during motion planning.
The ContactResultsMap results in a significant amount of heap allocations during motion planning.
Mar 15, 2023
After watching a few cppcon presentation on this functionality it is more involved that I thought when using std::pmr if you are storing a custom class/struct. Each of the structs data members would need to use pmr types like string and std::array. On the final slide of one of the presentation they stated that usually an object pool or custom struct would be sufficient without the complexity of std::pmr. I agree and think a custom class can be created to store an internal map and control how things are cleared to reduce multiple allocations during collision checking.
This data structure should be updated to leverage Pool library to avoid this. Links to documentation of available options:
Boost Pool Library
Boost Pool Library Examples
The text was updated successfully, but these errors were encountered: