Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: warning hz of detected_object_validator #631

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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