#include <velocity_iterator.h>
Public Member Functions | |
double | getVelocity () |
bool | isFinished () |
VelocityIterator & | operator++ (int) |
void | reset () |
VelocityIterator (double min, double max, int num_samples) | |
Private Attributes | |
unsigned int | current_index |
std::vector< double > | samples_ |
We use the class to get even sized samples between min and max, inluding zero if it is not included (and range goes from negative to positive
Definition at line 47 of file velocity_iterator.h.
base_local_planner::VelocityIterator::VelocityIterator | ( | double | min, |
double | max, | ||
int | num_samples | ||
) | [inline] |
Definition at line 49 of file velocity_iterator.h.
double base_local_planner::VelocityIterator::getVelocity | ( | ) | [inline] |
Definition at line 76 of file velocity_iterator.h.
bool base_local_planner::VelocityIterator::isFinished | ( | ) | [inline] |
Definition at line 89 of file velocity_iterator.h.
VelocityIterator& base_local_planner::VelocityIterator::operator++ | ( | int | ) | [inline] |
Definition at line 80 of file velocity_iterator.h.
void base_local_planner::VelocityIterator::reset | ( | ) | [inline] |
Definition at line 85 of file velocity_iterator.h.
unsigned int base_local_planner::VelocityIterator::current_index [private] |
Definition at line 95 of file velocity_iterator.h.
std::vector<double> base_local_planner::VelocityIterator::samples_ [private] |
Definition at line 94 of file velocity_iterator.h.