Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Commit

Permalink
bug fix about issue #5
Browse files Browse the repository at this point in the history
Signed-off-by: Tasaki-Lab <[email protected]>
  • Loading branch information
Tasaki-Lab committed Jun 25, 2020
1 parent ab20e02 commit 347a746
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ grid_map::Index PointsToCostmap::fetchGridIndexFromPoint(const pcl::PointXYZ& po
double mapped_x = (grid_length_x_ - origin_x_offset - point.x) / grid_resolution_;
double mapped_y = (grid_length_y_ - origin_y_offset - point.y) / grid_resolution_;

int mapped_x_ind = std::ceil(mapped_x);
int mapped_y_ind = std::ceil(mapped_y);
int mapped_x_ind = (int)mapped_x;
int mapped_y_ind = (int)mapped_y;
grid_map::Index index(mapped_x_ind, mapped_y_ind);
return index;
}
Expand Down

0 comments on commit 347a746

Please sign in to comment.