Skip to content

Commit

Permalink
fix: warning hz of detected_object_validator (#631)
Browse files Browse the repository at this point in the history
Signed-off-by: Yukihiro Saito <yukky.saito@gmail.com>
  • Loading branch information
yukkysaito authored and tkimura4 committed Apr 5, 2022
1 parent c72688d commit 1885b68
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 @@ -282,7 +282,7 @@ void ObstaclePointCloudBasedValidator::toPolygon2d(
}
} else if (object.shape.type == Shape::POLYGON) {
RCLCPP_WARN_THROTTLE(
this->get_logger(), *this->get_clock(), 5, "POLYGON type is not supported");
this->get_logger(), *this->get_clock(), 5000, "POLYGON type is not supported");
}
}

Expand All @@ -301,7 +301,7 @@ std::optional<float> ObstaclePointCloudBasedValidator::getMaxRadius(
}
return max_dist;
} else {
RCLCPP_WARN_THROTTLE(this->get_logger(), *this->get_clock(), 5, "unknown shape type");
RCLCPP_WARN_THROTTLE(this->get_logger(), *this->get_clock(), 5000, "unknown shape type");
return std::nullopt;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ void OccupancyGridBasedValidator::toPolygon2d(
vertices.push_back(cv::Point2f(pose.position.x + offset3.x(), pose.position.y + offset3.y()));
} else if (object.shape.type == Shape::CYLINDER) {
RCLCPP_WARN_THROTTLE(
this->get_logger(), *this->get_clock(), 5, "CYLINDER type is not supported");
this->get_logger(), *this->get_clock(), 5000, "CYLINDER type is not supported");
} else if (object.shape.type == Shape::POLYGON) {
RCLCPP_WARN_THROTTLE(
this->get_logger(), *this->get_clock(), 5, "POLYGON type is not supported");
this->get_logger(), *this->get_clock(), 5000, "POLYGON type is not supported");
}
}

Expand Down

0 comments on commit 1885b68

Please sign in to comment.