Skip to content

Commit

Permalink
chore(occupancy_grid): remove unecessary log (#1217)
Browse files Browse the repository at this point in the history
* chore(occupancy_grid): remove unecessary log

Signed-off-by: taikitanaka3 <ttatcoder@outlook.jp>

* ci(pre-commit): autofix

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
taikitanaka3 and pre-commit-ci[bot] authored Jul 4, 2022
1 parent 4b3ca87 commit 51f7648
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ void OccupancyGridMap::raytraceFreespace(const PointCloud2 & pointcloud, const P
const double ox{robot_pose.position.x};
const double oy{robot_pose.position.y};
if (!worldToMap(robot_pose.position.x, robot_pose.position.y, x0, y0)) {
RCLCPP_WARN_THROTTLE(
logger_, clock_, 1000,
RCLCPP_DEBUG(
logger_,
"The origin for the sensor at (%.2f, %.2f) is out of map bounds. So, the costmap cannot "
"raytrace for it.",
ox, oy);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ void OccupancyGridMap::raytrace(
const double ox{source_x};
const double oy{source_y};
if (!worldToMap(ox, oy, x0, y0)) {
RCLCPP_WARN_THROTTLE(
logger_, clock_, 1000,
RCLCPP_DEBUG(
logger_,
"The origin for the sensor at (%.2f, %.2f) is out of map bounds. So, the costmap cannot "
"raytrace for it.",
ox, oy);
Expand Down

0 comments on commit 51f7648

Please sign in to comment.