Go to the documentation of this file.
42 MapBasedQueue(false), costmap_(
costmap), seen_(0), manhattan_(manhattan), cached_max_distance_(-1)
61 unsigned int src_x,
unsigned int src_y)
63 if (
seen_(cur_x, cur_y))
return;
67 CellData data(distance, cur_x, cur_y, src_x, src_y);
81 unsigned int mx = current_cell.
x_;
82 unsigned int my = current_cell.
y_;
83 unsigned int sx = current_cell.
src_x_;
84 unsigned int sy = current_cell.
src_y_;
nav_core2::BasicCostmap costmap
void reset() override
Clear the queue.
double distanceLookup(const unsigned int cur_x, const unsigned int cur_y, const unsigned int src_x, const unsigned int src_y)
Lookup pre-computed distances.
void setInfo(const NavGridInfo &new_info) override
CostmapQueue(nav_core2::Costmap &costmap, bool manhattan=false)
constructor
void computeCache()
Compute the cached distances.
void enqueueCell(unsigned int x, unsigned int y)
Add a cell the queue.
CellData getNextCell()
Get the next cell to examine, and enqueue its neighbors as needed.
void pop()
Remove (and destroy) the item at the front of the queue.
CellData & front()
Return the item at the front of the queue.
Storage for cell information used during queue expansion.
virtual int getMaxDistance() const
Get the maximum x or y distance we'll need to calculate the distance between.
nav_grid::VectorNavGrid< unsigned char > seen_
nav_core2::Costmap & costmap_
void enqueue(const double priority, CellData item)
Add a new item to the queue with a set priority.
virtual bool validCellToQueue(const CellData &cell)
Check to see if we should add this cell to the queue. Always true unless overridden.
virtual void reset()
Clear the queue.
Templatized interface for a priority queue.
void setValue(const unsigned int x, const unsigned int y, const T &value) override
std::vector< std::vector< double > > cached_distances_
costmap_queue
Author(s):
autogenerated on Sun May 18 2025 02:47:19