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/refined aeb #676

Closed
wants to merge 18 commits into from
Prev Previous commit
ci(pre-commit): autofix
  • Loading branch information
pre-commit-ci[bot] committed Jul 25, 2023
commit 22bd06c4f5563f9abbe91c3d8c4d1e4b211a8b11
4 changes: 3 additions & 1 deletion control/autonomous_emergency_braking/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,9 @@ bool AEB::hasCollisionWithPrevious(const Path & ego_path, const std::vector<Obje
vehicle_info_.max_longitudinal_offset_m;

// The distance between ego and object is shorter than distance + hysteresis( 0.1[m] )
RCLCPP_INFO(this->get_logger(), "dist: %lf, recoded: %lf", dist_ego_to_object, collision_data_.distance_ego_to_object);
RCLCPP_INFO(
this->get_logger(), "dist: %lf, recoded: %lf", dist_ego_to_object,
collision_data_.distance_ego_to_object);
if (dist_ego_to_object < collision_data_.distance_ego_to_object + 0.1) {
// collision still happens
return true;
Expand Down