Skip to content

Commit

Permalink
Add debug log for remember updates
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat committed Dec 4, 2024
1 parent 03f3aef commit 6e7fb22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions planner_cspace/src/planner_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -851,12 +851,15 @@ class Planner3dNode

if (remember_updates_)
{
const auto ts = boost::chrono::high_resolution_clock::now();
bbf_costmap_.remember(
&cm_updates_, s,
remember_hit_odds_, remember_miss_odds_,
hist_ignore_range_, hist_ignore_range_max_);
publishRememberedMap();
bbf_costmap_.updateCostmap();
const float dur = boost::chrono::duration<float>(tnow - ts).count();
ROS_DEBUG("Remembered costmap updated (%0.4f sec.)", dur);
}
if (!has_goal_)
return;
Expand Down

0 comments on commit 6e7fb22

Please sign in to comment.