-
Notifications
You must be signed in to change notification settings - Fork 682
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
feat(autonomous_emergency_braking): enable aeb with only one req path #8569
feat(autonomous_emergency_braking): enable aeb with only one req path #8569
Conversation
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
}); | ||
|
||
if (!has_imu_path && !has_predicted_path) { | ||
return missing("any type of path"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return missing("any type of path"); | |
if (use_imu_path_ && use_predicted_trajectory_) { | |
RCLCPP_INFO_SKIPFIRST_THROTTLE( | |
get_logger(), *get_clock(), 5000, | |
"[AEB] At least one path (IMU or predicted trajectory) is required for operation"); | |
} | |
return false; |
@danielsanchezaran
Isn't it sufficient to output "At least one path is required" only when both use_imu_path_
and use_predicted_trajectory_
are true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kyoichi-sugahara this check "(use_imu_path_ && use_predicted_trajectory_)" is not really necessary, the AEB requires at least one path (imu or predicted_path) so the lack of at least 1 path should be enough to trigger the message, in the case that, for example the user sets use_imu_path_ to true and use_predicted_trajectory_ to false and there is NO Imu topic, I believe printing this message is not a problem either. I have modified the code to reflect this
Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
09eaf4a
to
5da5972
Compare
d75f875
into
autowarefoundation:main
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8569 +/- ##
==========================================
- Coverage 24.00% 23.99% -0.01%
==========================================
Files 1384 1386 +2
Lines 102183 102217 +34
Branches 38949 38952 +3
==========================================
+ Hits 24527 24530 +3
- Misses 75191 75222 +31
Partials 2465 2465
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…autowarefoundation#8569) * make it so AEB works with only one req path type (imu or MPC) Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix missing mpc path return Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * add check Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * modify no path msg Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
…autowarefoundation#8569) * make it so AEB works with only one req path type (imu or MPC) Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix missing mpc path return Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * add check Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * modify no path msg Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
…autowarefoundation#8569) * make it so AEB works with only one req path type (imu or MPC) Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix missing mpc path return Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * add check Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * modify no path msg Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
…autowarefoundation#8569) * make it so AEB works with only one req path type (imu or MPC) Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix missing mpc path return Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * add check Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * modify no path msg Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
…autowarefoundation#8569) * make it so AEB works with only one req path type (imu or MPC) Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix missing mpc path return Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * add check Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * modify no path msg Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
…autowarefoundation#8569) * make it so AEB works with only one req path type (imu or MPC) Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix missing mpc path return Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * add check Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * modify no path msg Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
* add AEB updated module Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * change back msgs and other things Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix name of aeb in sys error monitor Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * delete old AEB package Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * feat(autonomous_emergency_braking): enable aeb with only one req path (autowarefoundation#8569) * make it so AEB works with only one req path type (imu or MPC) Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix missing mpc path return Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * add check Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * modify no path msg Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix(autonomous_emergency_braking): fix debug marker visual bug (autowarefoundation#8611) fix bug by using the collision data keeper Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * docs(autonomous_emergency_braking): add missing params to README (autowarefoundation#8950) add missing params Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * ci(pre-commit): autofix --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…autowarefoundation#8569) * make it so AEB works with only one req path type (imu or MPC) Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix missing mpc path return Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * add check Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * modify no path msg Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
…autowarefoundation#8569) * make it so AEB works with only one req path type (imu or MPC) Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * fix missing mpc path return Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * add check Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * modify no path msg Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
Description
This PR allows the AEB module to work when at least one type of path (IMU or MPC based) is available (and use_imu_path and use_predicted_path parameter are both true). A warning message is printed if one of the path types is missing, but the AEB can still operate an issue emergency stops using the remaining path type.
cap-.2024-08-22-14-04-10.mp4
Related links
Parent Issue:
How was this PR tested?
PSim
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.