Class CellNode

Class Documentation

class CellNode

CellNode class, a node in a grid.

Public Functions

inline CellNode(const Point2i &coordinates, const CellNodePtr &parent_ptr, double g_cost, double h_cost = 0)

Constructor for CellNode class.

Parameters:
  • coordinates – coordinates of the cell

  • parent_ptr – parent node

  • g_cost – cost to reach this node

  • h_cost – heuristic cost to reach the goal

inline void set_g_cost(double g_cost)
inline Point2i coordinates()
inline int x()
inline int y()
inline CellNodePtr parent_ptr()
inline double get_g_cost()
inline double get_h_cost()
inline double get_total_cost()

Protected Attributes

double g_cost_
double h_cost_