Skip to content

Commit

Permalink
Update costmap_2d/src/costmap_2d.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent SAMY <vincent.samy@rapyuta-robotics.com>
  • Loading branch information
corot and vsamy authored May 9, 2024
1 parent bd48bbd commit 97af8ae
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions costmap_2d/src/costmap_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,7 @@ bool Costmap2D::worldToMapContinuous(double wx, double wy, float& mx, float& my)
mx = static_cast<float>((wx - origin_x_) / resolution_) + 0.5f;
my = static_cast<float>((wy - origin_y_) / resolution_) + 0.5f;

if (mx < size_x_ && my < size_y_)
{
return true;
}
return false;
return mx < size_x_ && my < size_y_;
}

void Costmap2D::worldToMapNoBounds(double wx, double wy, int& mx, int& my) const
Expand Down

0 comments on commit 97af8ae

Please sign in to comment.