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

feat(start_planner): add a sanity check if the path is empty #6643

Conversation

danielsanchezaran
Copy link
Contributor

Description

If the path for collision check happens to be empty, it might cause a crash, this PR introduces a sanity check for said cases.

Tests performed

PSim and compilation tests

Effects on system behavior

Not applicable.

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.

Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
@danielsanchezaran danielsanchezaran marked this pull request as ready for review March 18, 2024 03:34
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Mar 18, 2024
@danielsanchezaran danielsanchezaran added run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) and removed component:planning Route planning, decision-making, and navigation. (auto-assigned) labels Mar 18, 2024
@danielsanchezaran danielsanchezaran self-assigned this Mar 18, 2024
Copy link
Contributor

@kosuke55 kosuke55 left a comment

Choose a reason for hiding this comment

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

LGTM!

@danielsanchezaran danielsanchezaran added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Mar 18, 2024
@danielsanchezaran danielsanchezaran enabled auto-merge (squash) March 18, 2024 03:55
Copy link

codecov bot commented Mar 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 14.76%. Comparing base (c24c3b0) to head (fcdd0f1).
Report is 5 commits behind head on main.

Files Patch % Lines
...ath_start_planner_module/pull_out_planner_base.hpp 0.00% 5 Missing ⚠️
...ng/behavior_path_start_planner_module/src/util.cpp 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6643      +/-   ##
==========================================
- Coverage   14.77%   14.76%   -0.02%     
==========================================
  Files        1925     1925              
  Lines      132760   132911     +151     
  Branches    39544    39544              
==========================================
  Hits        19621    19621              
- Misses      91172    91323     +151     
  Partials    21967    21967              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 14.77% <ø> (+<0.01%) ⬆️ Carriedforward from c24c3b0

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@danielsanchezaran danielsanchezaran added run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) and removed run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) labels Mar 18, 2024
@danielsanchezaran danielsanchezaran merged commit f5f0683 into autowarefoundation:main Mar 18, 2024
60 of 62 checks passed
@danielsanchezaran danielsanchezaran deleted the feat/empty_path_check_collision_check branch March 18, 2024 06:23
kaigohirao pushed a commit to kaigohirao/autoware.universe that referenced this pull request Mar 22, 2024
…efoundation#6643)

add a sanity check if the path is empty

Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
Signed-off-by: kaigohirao <kaigo.hirao@proxima-ai-tech.com>
karishma1911 pushed a commit to Interplai/autoware.universe that referenced this pull request Jun 3, 2024
…efoundation#6643)

add a sanity check if the path is empty

Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.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