Are local copy of Costmaps used for recovery behaviours updated in real time?
Hello,
My ros distribution is ros kinetic.
I am currently implementing a recovery behavior in a similar fashion of the rotate recovery of the nav core. During the init of the recovery i am doing a local copy of the costmap:
world_model_ = new base_local_planner::CostmapModel(*local_costmap_->getCostmap());
After that during the execution of the recovery I am doing several calls to footprintCost:
double footprint_cost = world_model_->footprintCost(x_cost, y_cost, theta, local_costmap_->getRobotFootprint(), 0.0, 0.0);
Is the cost-map interrogated by the footprintCost function updated in real time or is fixed at init time ?