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
Next Next commit
feat: add comment
  • Loading branch information
h-ohta committed Jul 25, 2023
commit 416e7bd96a812d3759e3d06a1c2e98216b6d8f45
1 change: 1 addition & 0 deletions control/autonomous_emergency_braking/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ 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);
if (dist_ego_to_object < collision_data_.distance_ego_to_object + 0.1) {
// collision still happens
return true;
Expand Down