30 #include <fast_methods/ndgridmap/cell.h>
33 enum class FMState {OPEN, NARROW, FROZEN};
37 friend std::ostream& operator << (std::ostream & os,
const FMCell & c);
45 virtual inline void setVelocity(
double v) {
occupancy_ = v;}
46 virtual inline void setArrivalTime(
double at) {
value_= at;}
47 virtual inline void setHeuristicTime(
double hv) {
hValue_ = hv;}
48 virtual inline void setState(FMState state) {
state_ = state;}
49 virtual inline void setBucket(
int b) {
bucket_ = b;}
55 std::string type() {
return std::string(
"FMCell - Fast Marching cell");}
57 virtual inline double getArrivalTime()
const {
return value_;}
58 virtual inline double getHeuristicValue()
const {
return hValue_;}
59 virtual inline double getTotalValue()
const {
return value_ +
hValue_;}
60 virtual inline double getVelocity()
const {
return occupancy_;}
61 virtual inline FMState getState()
const {
return state_;}
62 virtual inline int getBucket()
const {
return bucket_;}
double hValue_
Heuristic value.
FMState state_
State of the cell.
int bucket_
Used when sorted with FMUntidyQueue.
A stand-alone, standard C++ class which represents each one of the cells of a gridmap and its typical...
double occupancy_
Binary occupancy, true means clear, false occupied.
FMCell()
Default constructor which performs and implicit Fast Marching-like initialization of the grid...
double value_
Value of the cell.
virtual void setDefault()
Sets default values for the cell. Concretely, restarts value_ = Inf, state_ = OPEN and hValue_ = 0 bu...