Public Member Functions | Private Attributes | List of all members
base_local_planner::VelocityIterator Class Reference

#include <velocity_iterator.h>

Public Member Functions

double getVelocity ()
 
bool isFinished ()
 
VelocityIteratoroperator++ (int)
 
void reset ()
 
 VelocityIterator (double min, double max, int num_samples)
 

Private Attributes

unsigned int current_index
 
std::vector< double > samples_
 

Detailed Description

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 48 of file velocity_iterator.h.

Constructor & Destructor Documentation

◆ VelocityIterator()

base_local_planner::VelocityIterator::VelocityIterator ( double  min,
double  max,
int  num_samples 
)
inline

Definition at line 50 of file velocity_iterator.h.

Member Function Documentation

◆ getVelocity()

double base_local_planner::VelocityIterator::getVelocity ( )
inline

Definition at line 77 of file velocity_iterator.h.

◆ isFinished()

bool base_local_planner::VelocityIterator::isFinished ( )
inline

Definition at line 90 of file velocity_iterator.h.

◆ operator++()

VelocityIterator& base_local_planner::VelocityIterator::operator++ ( int  )
inline

Definition at line 81 of file velocity_iterator.h.

◆ reset()

void base_local_planner::VelocityIterator::reset ( )
inline

Definition at line 86 of file velocity_iterator.h.

Member Data Documentation

◆ current_index

unsigned int base_local_planner::VelocityIterator::current_index
private

Definition at line 96 of file velocity_iterator.h.

◆ samples_

std::vector<double> base_local_planner::VelocityIterator::samples_
private

Definition at line 95 of file velocity_iterator.h.


The documentation for this class was generated from the following file:


base_local_planner
Author(s): Eitan Marder-Eppstein, Eric Perko, contradict@gmail.com
autogenerated on Wed Jun 22 2022 02:07:08