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

Member Function Documentation

◆ getVelocity()

double base_local_planner::VelocityIterator::getVelocity ( )
inline

Definition at line 147 of file velocity_iterator.h.

◆ isFinished()

bool base_local_planner::VelocityIterator::isFinished ( )
inline

Definition at line 160 of file velocity_iterator.h.

◆ operator++()

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

Definition at line 151 of file velocity_iterator.h.

◆ reset()

void base_local_planner::VelocityIterator::reset ( )
inline

Definition at line 156 of file velocity_iterator.h.

Member Data Documentation

◆ current_index

unsigned int base_local_planner::VelocityIterator::current_index
private

Definition at line 166 of file velocity_iterator.h.

◆ samples_

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

Definition at line 165 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 Mon Mar 6 2023 03:50:24