TheCodez / dynamic-occupancy-grid-map

Implementation of "A Random Finite Set Approach for Dynamic Occupancy Grid Maps with Real-Time Application"
MIT License
278 stars 39 forks source link

Simlator: replace for loop by std::generate #73

Closed cbachhuber closed 4 years ago

cbachhuber commented 4 years ago

The advantage of this is that we avoid repeated calls of emplace_back, which required reallocation now and then (slow). Currently, we do only one allocation at initialization and then, we assign values.