diff --git a/planner_cspace/src/planner_3d.cpp b/planner_cspace/src/planner_3d.cpp index d48faa86..4affd184 100644 --- a/planner_cspace/src/planner_3d.cpp +++ b/planner_cspace/src/planner_3d.cpp @@ -744,7 +744,6 @@ class Planner3dNode map_update_retained_ = msg; return; } - map_update_retained_ = nullptr; last_costmap_ = now; @@ -824,6 +823,7 @@ class Planner3dNode } } } + map_update_retained_ = nullptr; const auto ts_cm_init_end = boost::chrono::high_resolution_clock::now(); const float ts_cm_init_dur = boost::chrono::duration(ts_cm_init_end - ts_cm_init_start).count(); ROS_DEBUG("Costmaps updated (%.4f)", ts_cm_init_dur);