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

chore(control_validator): use throttle for the error log #4960

Merged
Merged
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
4 changes: 3 additions & 1 deletion control/control_validator/src/control_validator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@
void ControlValidator::validate(const Trajectory & predicted_trajectory)
{
if (predicted_trajectory.points.size() < 2) {
RCLCPP_ERROR(get_logger(), "predicted_trajectory size is less than 2. Cannot validate.");
RCLCPP_ERROR_THROTTLE(

Check warning on line 166 in control/control_validator/src/control_validator.cpp

View check run for this annotation

Codecov / codecov/patch

control/control_validator/src/control_validator.cpp#L166

Added line #L166 was not covered by tests
get_logger(), *get_clock(), 1000,
"predicted_trajectory size is less than 2. Cannot validate.");
return;
}

Expand Down
Loading