-
Notifications
You must be signed in to change notification settings - Fork 673
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(motion_velocity_smoother): mismatch of v0/a0 between optimization and external velocity limit #2283
fix(motion_velocity_smoother): mismatch of v0/a0 between optimization and external velocity limit #2283
Conversation
Codecov ReportBase: 11.09% // Head: 11.06% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2283 +/- ##
==========================================
- Coverage 11.09% 11.06% -0.03%
==========================================
Files 1208 1209 +1
Lines 86569 86792 +223
Branches 20835 20862 +27
==========================================
Hits 9607 9607
- Misses 66804 67023 +219
- Partials 10158 10162 +4
*This pull request uses carry forward flags. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
…n and external velocity limit Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
9835d5b
to
4a88821
Compare
// calculate prev closest point | ||
if (!prev_output_.empty()) { | ||
const size_t current_seg_idx = motion_utils::findFirstNearestSegmentIndexWithSoftConstraints( | ||
prev_output_, current_pose_ptr_->pose, node_param_.ego_nearest_dist_threshold, | ||
node_param_.ego_nearest_yaw_threshold); | ||
const auto closest_point = trajectory_utils::calcInterpolatedTrajectoryPoint( | ||
prev_output_, current_pose_ptr_->pose, current_seg_idx); | ||
prev_closest_point_ = closest_point; | ||
} | ||
|
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.
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.
For consistency of v0/a0 between optimization and external velocity limit, calculate prev_closest_point_ first here.
struct ExternalVelocityLimit | ||
{ | ||
double velocity{0.0}; // current external_velocity_limit | ||
double dist{0.0}; // distance to set external velocity limit | ||
}; | ||
ExternalVelocityLimit | ||
external_velocity_limit_; // velocity and distance constraint of external velocity limit |
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.
create ExternalVelocityLimit struct instead of having velocity and dist respectively as a member variable .
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
I confirmed that external velocity limit works well with this PR during ACC by obstacle_cruise_planner. |
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.
LGTM
… and external velocity limit (autowarefoundation#2283) * fix(motion_velocity_smoother): inconsistent v0/a0 between optimization and external velocity limit Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * remove debug print Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: Kotaro Yoshimoto <pythagora.yoshimoto@gmail.com>
… and external velocity limit (autowarefoundation#2283) * fix(motion_velocity_smoother): inconsistent v0/a0 between optimization and external velocity limit Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * remove debug print Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: kminoda <koji.minoda@tier4.jp>
… and external velocity limit (autowarefoundation#2283) * fix(motion_velocity_smoother): inconsistent v0/a0 between optimization and external velocity limit Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * remove debug print Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: yoshiri <yoshiyoshidetteiu@gmail.com>
… and external velocity limit (autowarefoundation#2283) * fix(motion_velocity_smoother): inconsistent v0/a0 between optimization and external velocity limit Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * remove debug print Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
…tion#2157) Signed-off-by: yutaka <purewater0901@gmail.com> Signed-off-by: yutaka <purewater0901@gmail.com> chore: remove motion_common dependency (autowarefoundation#2231) * remove motion_common from smoother Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * remove motion_common from control_performance_analysis and simple_planning_simualtor Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * fix include Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * add include Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> refactor(motion_velocity_smoother): remove unused optional (autowarefoundation#1906) * remove unused optional Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> * pre-commit Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> Signed-off-by: Takamasa Horibe <horibe.takamasa@gmail.com> add tunable deccel limit before curve fix(motion_velocity_smoother): mismatch of v0/a0 between optimization and external velocity limit (autowarefoundation#2283) * fix(motion_velocity_smoother): inconsistent v0/a0 between optimization and external velocity limit Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * remove debug print Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> fix(motion_velocity_smoother): fix taking long time to start in "l2_smoother" (autowarefoundation#2289) fix-l2-smoother Signed-off-by: jack.song <jack.song@autocore.ai> Signed-off-by: jack.song <jack.song@autocore.ai> chore(motion_velocity_smoother): add debug print for non-supported function (autowarefoundation#2298) Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> fix(motion_velocity_smoother): add current_closest_point_from_prev_output (autowarefoundation#2399) Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com> Signed-off-by: Makoto Kurihara <mkuri8m@gmail.com> increase distance before curve update delay compansation
Signed-off-by: Takayuki Murooka takayuki5168@gmail.com
Description
Without this PR, v0 and a0 of optimization and external velocity limit has a slight difference though they should have consistency to calculate optimization well.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.