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(autoware_map_based_prediction): fix argument order #8031

Merged
merged 3 commits into from
Aug 7, 2024

Conversation

yucedagonurcan
Copy link
Contributor

Description

Original code invokes getFrenetPoint function with wrong order of arguments:

Original:

getFrenetPoint(object, ref_path, speed_limit, duration);

New:

getFrenetPoint(object, ref_path, duration, speed_limit);

Decleration of the function getFrenetPoint:

FrenetPoint PathGenerator::getFrenetPoint(
  const TrackedObject & object, const PosePath & ref_path, const double duration,
  const double speed_limit) const

Related links

Parent Issue:

  • Link

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

@github-actions github-actions bot added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Jul 14, 2024
Copy link

github-actions bot commented Jul 14, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@Shin-kyoto Shin-kyoto added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Aug 1, 2024
@Shin-kyoto
Copy link
Contributor

Thank you for your PR!!

I checked your PR and I confirmed that your PR appropriately resolves the bug.

@YoshiRi @ktro2828 Can you check this PR as maintainer? 🙏

Copy link
Contributor

@ktro2828 ktro2828 left a comment

Choose a reason for hiding this comment

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

LGTM

@ktro2828
Copy link
Contributor

ktro2828 commented Aug 2, 2024

@yucedagonurcan Code looks good but you need to pass DCO. Please contain sign-off proof on your commit message. Could you fix that? https://github.com/apps/dco

Copy link

codecov bot commented Aug 2, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 28.78%. Comparing base (3d849e9) to head (6d71e49).
Report is 981 commits behind head on main.

Files Patch % Lines
...toware_map_based_prediction/src/path_generator.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #8031       +/-   ##
===========================================
+ Coverage   15.09%   28.78%   +13.69%     
===========================================
  Files        1967     1610      -357     
  Lines      135941   117851    -18090     
  Branches    42122    50765     +8643     
===========================================
+ Hits        20520    33928    +13408     
+ Misses      92700    74742    -17958     
+ Partials    22721     9181    -13540     
Flag Coverage Δ *Carryforward flag
differential 1.12% <0.00%> (?)
total 28.95% <0.00%> (+13.86%) ⬆️ Carriedforward from 0eae67c

*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.

Copy link
Contributor

@YoshiRi YoshiRi left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

…enetPoint()`

Signed-off-by: yucedagonurcan <onur@adastec.com>
@ktro2828 ktro2828 enabled auto-merge (squash) August 7, 2024 01:06
@ktro2828 ktro2828 merged commit 8cc3e49 into autowarefoundation:main Aug 7, 2024
23 of 24 checks passed
esteve pushed a commit to esteve/autoware.universe that referenced this pull request Aug 13, 2024
…ation#8031)

fix(autoware_map_based_prediction): fix argument order in call `getFrenetPoint()`

Signed-off-by: yucedagonurcan <onur@adastec.com>
Co-authored-by: Shintaro Tomie <58775300+Shin-kyoto@users.noreply.github.com>
Co-authored-by: Kotaro Uetake <60615504+ktro2828@users.noreply.github.com>
technolojin pushed a commit to technolojin/autoware.universe that referenced this pull request Aug 15, 2024
…ation#8031)

fix(autoware_map_based_prediction): fix argument order in call `getFrenetPoint()`

Signed-off-by: yucedagonurcan <onur@adastec.com>
Co-authored-by: Shintaro Tomie <58775300+Shin-kyoto@users.noreply.github.com>
Co-authored-by: Kotaro Uetake <60615504+ktro2828@users.noreply.github.com>
technolojin pushed a commit to technolojin/autoware.universe that referenced this pull request Aug 15, 2024
…ation#8031)

fix(autoware_map_based_prediction): fix argument order in call `getFrenetPoint()`

Signed-off-by: yucedagonurcan <onur@adastec.com>

Co-authored-by: Shintaro Tomie <58775300+Shin-kyoto@users.noreply.github.com>
Co-authored-by: Kotaro Uetake <60615504+ktro2828@users.noreply.github.com>
technolojin added a commit to tier4/autoware.universe that referenced this pull request Aug 15, 2024
…performance of map_based_prediction (#1464)

* fix(autoware_map_based_prediction): fix argument order (autowarefoundation#8031)

fix(autoware_map_based_prediction): fix argument order in call `getFrenetPoint()`

Signed-off-by: yucedagonurcan <onur@adastec.com>

Co-authored-by: Shintaro Tomie <58775300+Shin-kyoto@users.noreply.github.com>
Co-authored-by: Kotaro Uetake <60615504+ktro2828@users.noreply.github.com>

* perf(map_based_prediction): remove unncessary withinRoadLanelet() (autowarefoundation#8403)

Signed-off-by: Mamoru Sobue <hilo.soblin@gmail.com>

* perf(map_based_prediction): create a fence LineString layer and use rtree query (autowarefoundation#8406)

use fence layer

Signed-off-by: Mamoru Sobue <hilo.soblin@gmail.com>

* perf(map_based_prediction): apply lerp instead of spline (autowarefoundation#8416)

perf: apply lerp interpolation instead of spline

Signed-off-by: Kotaro Uetake <60615504+ktro2828@users.noreply.github.com>

* perf(autoware_map_based_prediction): improve orientation calculation and resample converted path (autowarefoundation#8427)

* refactor: improve orientation calculation and resample converted path with linear interpolation

Simplify the calculation of the orientation for each pose in the convertPathType function by directly calculating the sine and cosine of half the yaw angle. This improves efficiency and readability. Also, improve the resampling of the converted path by using linear interpolation for better performance.

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

* Update perception/autoware_map_based_prediction/src/map_based_prediction_node.cpp

Co-authored-by: Kotaro Uetake <60615504+ktro2828@users.noreply.github.com>

* Update perception/autoware_map_based_prediction/src/map_based_prediction_node.cpp

Co-authored-by: Kotaro Uetake <60615504+ktro2828@users.noreply.github.com>

---------

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
Co-authored-by: Shumpei Wakabayashi <42209144+shmpwk@users.noreply.github.com>
Co-authored-by: Kotaro Uetake <60615504+ktro2828@users.noreply.github.com>

* perf(map_based_prediction): improve world to map transform calculation (autowarefoundation#8413)

* perf(map_based_prediction): improve world to map transform calculation

1. remove unused transforms
2. make transform loading late as possible

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

* perf(map_based_prediction): get transform only when it is necessary

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

---------

Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>

* feat(autoware_universe_utils): add LRU Cache (autowarefoundation#8456)

Signed-off-by: Yukinari Hisaki <42021302+yhisaki@users.noreply.github.com>

* perf(autoware_map_based_prediction): speed up map based prediction by using lru cache in convertPathType (autowarefoundation#8461)

feat(autoware_map_based_prediction): speed up map based prediction by using lru cache in convertPathType

Signed-off-by: Yukinari Hisaki <42021302+yhisaki@users.noreply.github.com>

* fix(autoware_map_based_prediction): use surrounding_crosswalks instead of external_surrounding_crosswalks (autowarefoundation#8467)

Signed-off-by: Yukinari Hisaki <42021302+yhisaki@users.noreply.github.com>

---------

Signed-off-by: Mamoru Sobue <hilo.soblin@gmail.com>
Signed-off-by: Kotaro Uetake <60615504+ktro2828@users.noreply.github.com>
Signed-off-by: Taekjin LEE <taekjin.lee@tier4.jp>
Signed-off-by: Yukinari Hisaki <42021302+yhisaki@users.noreply.github.com>
Co-authored-by: Onur Can Yücedağ <onur@adastec.com>
Co-authored-by: Shintaro Tomie <58775300+Shin-kyoto@users.noreply.github.com>
Co-authored-by: Kotaro Uetake <60615504+ktro2828@users.noreply.github.com>
Co-authored-by: Mamoru Sobue <hilo.soblin@gmail.com>
Co-authored-by: Shumpei Wakabayashi <42209144+shmpwk@users.noreply.github.com>
Co-authored-by: Yukinari Hisaki <42021302+yhisaki@users.noreply.github.com>
xtk8532704 pushed a commit to tier4/autoware.universe that referenced this pull request Aug 15, 2024
…ation#8031)

fix(autoware_map_based_prediction): fix argument order in call `getFrenetPoint()`

Signed-off-by: yucedagonurcan <onur@adastec.com>
Co-authored-by: Shintaro Tomie <58775300+Shin-kyoto@users.noreply.github.com>
Co-authored-by: Kotaro Uetake <60615504+ktro2828@users.noreply.github.com>
Signed-off-by: xtk8532704 <1041084556@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:perception Advanced sensor data processing and environment understanding. (auto-assigned) tag: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.

4 participants