Skip to content

Commit

Permalink
Revert "costmap_cspace: clear update region on output layer (at-wat#139
Browse files Browse the repository at this point in the history
…)"

This reverts commit d5c0115.
  • Loading branch information
ykoga-kyutech committed Jul 16, 2019
1 parent a56d39e commit ee52b95
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ class Costmap3dLayerOutput : public Costmap3dLayerBase
UpdatedRegion region_merged = region;
region_merged.merge(region_prev_);
region_prev_ = region;
region_ = UpdatedRegion();

update_msg->x = region_merged.x_;
update_msg->y = region_merged.y_;
Expand All @@ -133,7 +132,7 @@ class Costmap3dLayerOutput : public Costmap3dLayerBase
{
const int x2 = update_msg->x + i;
const int y2 = update_msg->y + j;
const int yaw2 = update_msg->yaw + k;
const int yaw2 = region_.yaw_ + k;

const auto& m = map_->getCost(x2, y2, yaw2);
const size_t addr = (k * update_msg->height + j) * update_msg->width + i;
Expand Down

0 comments on commit ee52b95

Please sign in to comment.