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(lane_change): change logger level in isVehicleStuckByObstacle #5315

Merged
merged 1 commit into from
Oct 16, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -1086,11 +1086,11 @@

for (const auto & prepare_duration : prepare_durations) {
for (const auto & sampled_longitudinal_acc : longitudinal_acc_sampling_values) {
const auto debug_print = [&](const auto & s) {

Check warning on line 1089 in planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp#L1089

Added line #L1089 was not covered by tests
RCLCPP_DEBUG_STREAM(
logger_, " - " << s << " : prep_time = " << prepare_duration
<< ", lon_acc = " << sampled_longitudinal_acc);
};

Check warning on line 1093 in planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp#L1093

Added line #L1093 was not covered by tests

// get path on original lanes
const auto prepare_velocity = std::max(
Expand Down Expand Up @@ -1144,11 +1144,11 @@
RCLCPP_DEBUG(logger_, " - sampling num for lat_acc: %lu", sample_lat_acc.size());

for (const auto & lateral_acc : sample_lat_acc) {
const auto debug_print = [&](const auto & s) {

Check warning on line 1147 in planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp#L1147

Added line #L1147 was not covered by tests
RCLCPP_DEBUG_STREAM(
logger_, " - " << s << " : prep_time = " << prepare_duration << ", lon_acc = "
<< sampled_longitudinal_acc << ", lat_acc = " << lateral_acc);
};

Check warning on line 1151 in planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp#L1151

Added line #L1151 was not covered by tests

const auto lane_changing_time = PathShifter::calcShiftTimeFromJerk(
shift_length, common_parameters.lane_changing_lateral_jerk, lateral_acc);
Expand Down Expand Up @@ -1265,7 +1265,7 @@
debug_print("Reject: including crosswalk!!");
continue;
}
RCLCPP_INFO_THROTTLE(

Check warning on line 1268 in planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp

View check run for this annotation

Codecov / codecov/patch

planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp#L1268

Added line #L1268 was not covered by tests
logger_, clock_, 1000, "Stop time is over threshold. Allow lane change in crosswalk.");
}

Expand Down Expand Up @@ -1725,7 +1725,7 @@
constexpr double DETECTION_DISTANCE_MARGIN = 10.0;
const auto detection_distance = max_lane_change_length + rss_dist +
getCommonParam().base_link2front + DETECTION_DISTANCE_MARGIN;
RCLCPP_INFO(logger_, "max_lane_change_length: %f, max_acc: %f", max_lane_change_length, max_acc);
RCLCPP_DEBUG(logger_, "max_lane_change_length: %f, max_acc: %f", max_lane_change_length, max_acc);

return isVehicleStuckByObstacle(current_lanes, detection_distance);
}
Expand Down
Loading