#ifndef _DIJKSTRA_H #define _DIJKSTRA_H #define PRIORITYBUFSIZE 10000 #include #include #include #include #include #include // inserting onto the priority blocks #define push_cur(n) { if (n>=0 && n=0 && n=0 && n= lethal_cost_) c = lethal_cost_ - 1; return c; } return lethal_cost_; } /** block priority buffers */ int *buffer1_, *buffer2_, *buffer3_; /**< storage buffers for priority blocks */ int *currentBuffer_, *nextBuffer_, *overBuffer_; /**< priority buffer block ptrs */ int currentBufferCount_, nextBufferCount_,overBufferCount_;//nextEnd_, overEnd_; /**< end points of arrays */ bool *pending_; /**< pending_ cells during propagation */ bool precise_; int tick_count_; // counter for selecting cell push_back ordering /** block priority thresholds */ float threshold_; /**< current threshold */ float priorityIncrement_; /**< priority threshold increment */ }; } //end namespace global_planner #endif