37 #ifndef DWA_LOCAL_PLANNER_VELOCITY_ITERATOR_H_ 38 #define DWA_LOCAL_PLANNER_VELOCITY_ITERATOR_H_ 55 num_samples = std::max(2, num_samples);
58 double step_size = (max - min) /
double(std::max(1, (num_samples - 1)));
63 for (
int j = 0; j < num_samples - 1; ++j) {
68 if ((current < 0) && (next > 0)) {
unsigned int current_index
std::vector< double > samples_
VelocityIterator(double min, double max, int num_samples)
VelocityIterator & operator++(int)