libmove3d
3.13.0
|
00001 #ifndef __DPGCELL_H__ 00002 #define __DPGCELL_H__ 00003 #include <vector> 00004 #include "Planner-pkg.h" 00005 #include "ThreeDCell.h" 00006 #include "ThreeDGrid.h" 00007 00008 class DpgCell : public API::ThreeDCell{ 00009 public: 00010 DpgCell(int i, Eigen::Vector3d corner, API::ThreeDGrid* grid); 00011 //setters and getters 00012 inline int isValid(void){return _valid;} 00013 inline void setValid(int value){_valid = value;} 00014 inline int isVisited(void){return _visited;} 00015 inline void setVisited(int value){_visited = value;} 00016 void draw(int color, int width); 00017 void draw(void); 00018 00019 private: 00020 std::vector<p3d_edge*> _edges; 00021 std::vector<p3d_node*> _nodes; 00022 int _valid; //There is no static obstacles crossing this cell 00023 int _visited; 00024 Eigen::Vector3d _cellSize; 00025 }; 00026 00027 #endif