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(behavior_path_planner): use RCLCPP_DEBUG for some frequent RCLCPP_WARN #4757

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 @@ -461,7 +461,7 @@ void AvoidanceModule::fillEgoStatus(
if (isOutputPathLocked()) {
data.safe_new_sl.clear();
data.candidate_path = helper_.getPreviousSplineShiftPath();
RCLCPP_WARN_THROTTLE(
RCLCPP_DEBUG_THROTTLE(
getLogger(), *clock_, 500, "this module is locked now. keep current path.");
return;
}
Expand Down Expand Up @@ -2455,7 +2455,7 @@ bool AvoidanceModule::isValidShiftLine(
constexpr double THRESHOLD = 0.1;
const auto offset = std::abs(new_shift_length - helper_.getEgoShift());
if (offset > THRESHOLD) {
RCLCPP_WARN_THROTTLE(
RCLCPP_DEBUG_THROTTLE(
getLogger(), *clock_, 1000, "new shift line is invalid. [HUGE OFFSET (%.2f)]", offset);
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ std::pair<std::vector<double>, std::vector<double>> PathShifter::calcBaseLengths

if (lateral_a_max < lateral_acc_limit_) {
// no need to consider acceleration limit
RCLCPP_WARN_THROTTLE(
RCLCPP_DEBUG_THROTTLE(
logger_, clock_, 3000, "No need to consider lateral acc limit. max: %f, limit: %f",
lateral_a_max, lateral_acc_limit_);
return getBaseLengthsWithoutAccelLimit(S, shift_length, v0, a, T, offset_back);
Expand Down