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(planning_validator): calculate max lateral acceleration after resampling trajectory #6679

Merged

Conversation

kaigohirao
Copy link
Contributor

@kaigohirao kaigohirao commented Mar 25, 2024

Description

Related JIRA Ticket: https://tier4.atlassian.net/browse/RT0-29352

In the planning validator, among other checks, the max lateral acceleration is calculated and checked whether it is larger than 1G [m/s^2] or not from an input of trajectory. The lateral accelerations are calculated from longitudinal velocities and curvatures at every trajectory points.

The validation function in the planning validator includes two internal trajectory variables, namely trajectory, an input from the motion velocity smoother which is densely sampled near the ego and sparsely sampled otherwise with the policy explained here , and resampled, representing the same path as trajectory but wholly sparsely resampled with the interval of 1~2m.

This PR puts the lateral acceleration check process after resampling of trajectory for the purpose of numerically safer calculations of curvatures.

Tests performed

I confirmed the normal operation with the latest version of Autoware in the planning simulation here.

Effects on system behavior

The plot on the upper right of the image blow is a comparison of max lateral acceleration calculated from trajectory (before change, red) and resampled (after change, blue). The red one becomes larger than 1G [m/s^2] but blue one is smoother and safe from the MRM check.

image

Note the above comparison is done with the version https://github.com/tier4/autoware.universe/tree/beta/v0.11.2 and commit ID 3e02320 .
Effects on the max lateral accelerations in the latest version of main would be small as the curvature calcuation is originally done after resampling the trajectory with the interval of about 1m.

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.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Mar 25, 2024
Signed-off-by: kaigohirao <kaigo.hirao@proxima-ai-tech.com>
@kaigohirao kaigohirao force-pushed the fix-planning-validator branch from eb2c7aa to 38b10ca Compare March 25, 2024 00:57
Copy link
Contributor

@TakaHoribe TakaHoribe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TakaHoribe TakaHoribe added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Mar 25, 2024
@TakaHoribe TakaHoribe enabled auto-merge (squash) March 25, 2024 01:23
@TakaHoribe TakaHoribe merged commit b9f7ae6 into autowarefoundation:main Mar 25, 2024
35 of 37 checks passed
kaigohirao added a commit to kaigohirao/autoware.universe that referenced this pull request Mar 27, 2024
…ampling trajectory (autowarefoundation#6679)

fix planning validator calc max lat acc after resampling

Signed-off-by: kaigohirao <kaigo.hirao@proxima-ai-tech.com>
kaigohirao added a commit to kaigohirao/autoware.universe that referenced this pull request Mar 27, 2024
…ampling trajectory (autowarefoundation#6679)

fix planning validator calc max lat acc after resampling

Signed-off-by: kaigohirao <kaigo.hirao@proxima-ai-tech.com>
TomohitoAndo pushed a commit to tier4/autoware.universe that referenced this pull request Mar 27, 2024
…ampling trajectory (autowarefoundation#6679)

fix planning validator calc max lat acc after resampling

Signed-off-by: kaigohirao <kaigo.hirao@proxima-ai-tech.com>
TomohitoAndo added a commit to tier4/autoware.universe that referenced this pull request Mar 28, 2024
…ampling trajectory (autowarefoundation#6679) (#1213)

fix(planning_validator): calculate max lateral acceleration after resampling trajectory (autowarefoundation#6679)

fix planning validator calc max lat acc after resampling

Signed-off-by: kaigohirao <kaigo.hirao@proxima-ai-tech.com>
Co-authored-by: kaigohirao <127086108+kaigohirao@users.noreply.github.com>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…ampling trajectory (autowarefoundation#6679)

fix planning validator calc max lat acc after resampling

Signed-off-by: kaigohirao <kaigo.hirao@proxima-ai-tech.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants