00001 00018 #ifndef FTC_LOCAL_PLANNER_JOIN_COSTMAP_H_ 00019 #define FTC_LOCAL_PLANNER_JOIN_COSTMAP_H_ 00020 00021 #include <costmap_2d/costmap_2d_ros.h> 00022 00023 #include <tf/transform_listener.h> 00024 00025 #include <Eigen/Core> 00026 00027 #include <vector> 00028 using std::vector; 00029 00030 namespace ftc_local_planner 00031 { 00032 class JoinCostmap 00033 { 00034 public: 00038 JoinCostmap(); 00039 00045 void initialize(costmap_2d::Costmap2DROS* local_costmap_ros, costmap_2d::Costmap2DROS* global_costmap_ros); 00046 00050 void joinMaps(); 00051 00052 private: 00053 costmap_2d::Costmap2DROS* global_costmap_ros_; 00054 costmap_2d::Costmap2DROS* local_costmap_ros_; 00055 00056 //Vector with all costvalues from the original global costmap. 00057 vector<vector<int> > global; 00058 00059 //Is initialization true. 00060 bool init; 00061 }; 00062 } 00063 #endif