37 #ifndef DWA_LOCAL_PLANNER_VELOCITY_ITERATOR_H_
38 #define DWA_LOCAL_PLANNER_VELOCITY_ITERATOR_H_
48 class VelocityIterator {
56 num_samples = std::max(2, num_samples);
59 double step_size = (max -
min) /
double(std::max(1, (num_samples - 1)));
64 for (
int j = 0; j < num_samples - 1; ++j) {
69 if ((current < 0) && (next > 0)) {