1 #ifndef JSK_FOOTSTEP_PLANNER_GRID_PERCEPTION_H_ 
    2 #define JSK_FOOTSTEP_PLANNER_GRID_PERCEPTION_H_ 
    4 #include <pcl/pcl_base.h> 
    5 #include <pcl/point_cloud.h> 
    6 #include <pcl/point_types.h> 
    7 #include <pcl/point_representation.h> 
   14   class PerceptionGridState : 
public CostedGridState
 
   19     PerceptionGridState(
int x, 
int y) : CostedGridState(
x, 
y), updated_(false)
 
   22     inline virtual bool isValid() {
 
   71       int ix = st->indexX();
 
   72       int iy = st->indexY();
 
   73       for(
int y = -1; 
y < 2; 
y++) {
 
   74         for(
int x = -1; 
x < 2; 
x++) {
 
  109     int ix = node->getState()->indexX();
 
  110     int iy = node->getState()->indexY();
 
  111     double gx = 
graph->getGoalState()->indexX() - ix;
 
  112     double gy = 
graph->getGoalState()->indexY() - iy;
 
  114     return std::sqrt(gx * gx + gy * gy);