34 ROS_ERROR(
"JoinCostmap: Resolution of local costmap is higher than global costmap resolution!");
55 ROS_WARN(
"JoinCostmap: Dont join costmap, because init faild.");
void setCost(unsigned int mx, unsigned int my, unsigned char cost)
void mapToWorld(unsigned int mx, unsigned int my, double &wx, double &wy) const
void joinMaps()
joinMaps join the local costmap in the global costmap.
costmap_2d::Costmap2DROS * local_costmap_ros_
void initialize(costmap_2d::Costmap2DROS *local_costmap_ros, costmap_2d::Costmap2DROS *global_costmap_ros)
initialize the two costmaps and check if resolution global costmap > resolution local costmap...
unsigned char getCost(unsigned int mx, unsigned int my) const
JoinCostmap()
JoinCostmap constructor.
costmap_2d::Costmap2DROS * global_costmap_ros_
unsigned int getSizeInCellsY() const
vector< vector< int > > global
unsigned int getSizeInCellsX() const
double getResolution() const
bool worldToMap(double wx, double wy, unsigned int &mx, unsigned int &my) const