Go to the documentation of this file.
35 #ifndef COSTMAP_QUEUE_COSTMAP_QUEUE_H
36 #define COSTMAP_QUEUE_COSTMAP_QUEUE_H
63 CellData(
const double d,
const unsigned int x,
const unsigned int y,
const unsigned int sx,
const unsigned int sy) :
113 void reset()
override;
145 using Ptr = std::shared_ptr<CostmapQueue>;
150 void enqueueCell(
unsigned int cur_x,
unsigned int cur_y,
unsigned int src_x,
unsigned int src_y);
179 const unsigned int src_x,
const unsigned int src_y)
181 unsigned int dx = std::abs(
static_cast<int>(cur_x) -
static_cast<int>(src_x));
182 unsigned int dy = std::abs(
static_cast<int>(cur_y) -
static_cast<int>(src_y));
190 #endif // COSTMAP_QUEUE_COSTMAP_QUEUE_H
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.
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.
A tool for finding the cells closest to some set of originating cells.
CellData getNextCell()
Get the next cell to examine, and enqueue its neighbors as needed.
std::shared_ptr< CostmapQueue > Ptr
convenience definition for a pointer
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_
CellData(const double d, const unsigned int x, const unsigned int y, const unsigned int sx, const unsigned int sy)
Real Constructor.
virtual bool validCellToQueue(const CellData &cell)
Check to see if we should add this cell to the queue. Always true unless overridden.
Templatized interface for a priority queue.
CellData()
Default Constructor - Should be used sparingly.
std::vector< std::vector< double > > cached_distances_
costmap_queue
Author(s):
autogenerated on Sun May 18 2025 02:47:19