56 const float remember_hit_odds,
const float remember_miss_odds,
57 const int range_min,
const int range_max)
60 std::min(
updated_min_[0], std::max(0, center[0] - range_max)),
61 std::min(
updated_min_[1], std::max(0, center[1] - range_max)));
66 const size_t width =
size_[0];
67 const size_t height =
size_[1];
68 const int range_min_sq = range_min * range_min;
69 const int range_max_sq = range_max * range_max;
70 for (
VecInternal p(-range_max, 0); p[0] <= range_max; p[0]++)
72 for (p[1] = -range_max; p[1] <= range_max; p[1]++)
75 if (
static_cast<size_t>(gp[0]) >= width ||
76 static_cast<size_t>(gp[1]) >= height)
79 const float r_sq = p.sqlen();
80 if (r_sq > range_max_sq)
83 const int c = (*costmap)[
Vec(gp[0], gp[1], 0)];
90 if (r_sq >= range_min_sq)
104 for (
Vec p(0, 0, 0); p[1] <
size_[1]; p[1]++)
106 for (p[0] = 0; p[0] <
size_[0]; p[0]++)