Skip to content

Commit

Permalink
costmap_cspace: prevent map update region out-of-bound (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat authored Jan 15, 2025
1 parent ebf2c44 commit 48b01ec
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ class Costmap3dLayerBase
bool updateChainEntry(const UpdatedRegion& region, bool output = true)
{
region_.merge(region);
region_.normalize(map_->info.width, map_->info.height);

auto region_prev_now = region_;
region_prev_now.merge(region_prev_);
Expand Down

0 comments on commit 48b01ec

Please sign in to comment.