-
Notifications
You must be signed in to change notification settings - Fork 667
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
test: add test_points_to_costmap #960
test: add test_points_to_costmap #960
Conversation
Thank you for your PR! |
Signed-off-by: suchang <chang.su@autocore.ai>
ded5b4d
to
2e257aa
Compare
3ks for quick reply. git comments modified. |
ci process shows comments in code has unknown words
i do not think this should be modified... |
Since Please refer to the documentation about CI checks. |
Signed-off-by: suchang <chang.su@autocore.ai>
Signed-off-by: suchang <chang.su@autocore.ai>
Since it seems to be still WIP, I'll convert this to draft. 🙇 |
Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com>
Signed-off-by: suchang <chang.su@autocore.ai>
…ware.universe into test_costmap_generator
Signed-off-by: suchang <chang.su@autocore.ai>
…ware.universe into test_costmap_generator
Codecov Report
@@ Coverage Diff @@
## main #960 +/- ##
=========================================
+ Coverage 9.22% 10.16% +0.93%
=========================================
Files 1038 881 -157
Lines 70849 56502 -14347
Branches 14867 10775 -4092
=========================================
- Hits 6538 5743 -795
+ Misses 58691 45961 -12730
+ Partials 5620 4798 -822
*This pull request uses carry forward flags. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: suchang <chang.su@autocore.ai>
Signed-off-by: suchang <chang.su@autocore.ai>
Signed-off-by: suchang <chang.su@autocore.ai>
Signed-off-by: suchang <chang.su@autocore.ai>
…ware.universe into test_costmap_generator
Signed-off-by: suchang <chang.su@autocore.ai>
Signed-off-by: suchang <chang.su@autocore.ai>
Signed-off-by: suchang <chang.su@autocore.ai>
i know it sounds weired and incredible, but i found that only add
to i can not tell why, i had done a lot of work to find the point but found nothing. anyway, thanks to god, ci finally passed. 😩 |
Head branch was pushed to by a user without write access
@maxime-clem Could you take a look at this? 🙏 If it's okay for you, we can merge this. |
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.
Nice tests thank you.
I only have some minor comments and once the code is updated to suit the coding guidelines this can be merged.
Signed-off-by: suchang <chang.su@autocore.ai>
thanks for suggestions. since current testcase does not change grid related params like grid_resolution_/grid_length_x_/grid_position_x_, i set them to const. my initial thought was i would change these params in future when i add more cases, especially grid_position_x_,grid_position_y_, to test with diffrent grid map. current test case set grid center to (0,0) which is specific in map frame to make testdata construct and test result check easier. about why i did not put grid_min_value/grid_max_value/gridmap_layer_name in fixture class,i think test program is not just to test correctness of the program logic,but also a way to help autoware users to undestand and debug easier,i wanna they can know which params would have effect on costmap generation at first sight when they read the code. so i leave them there. |
* test: add test_points_to_costmap Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * add copyright Signed-off-by: suchang <chang.su@autocore.ai> * Update planning/costmap_generator/test/test_points_to_costmap.cpp Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * test: modify copyright Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * test: add include header file Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * test: add include header file Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix Signed-off-by: suchang <chang.su@autocore.ai> * test: modify comments for spell-check Signed-off-by: suchang <chang.su@autocore.ai> * test: fix spell-check Signed-off-by: suchang <chang.su@autocore.ai> * test: const variable Signed-off-by: suchang <chang.su@autocore.ai> * fix build error Signed-off-by: suchang <chang.su@autocore.ai> * fix build error Signed-off-by: suchang <chang.su@autocore.ai> * fix build error Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * ci(pre-commit): autofix * variable to const Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix Co-authored-by: suchang <chang.su@autocore.ai> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> Co-authored-by: Shark <71419791+Sharrrrk@users.noreply.github.com>
* test: add test_points_to_costmap Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * add copyright Signed-off-by: suchang <chang.su@autocore.ai> * Update planning/costmap_generator/test/test_points_to_costmap.cpp Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * test: modify copyright Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * test: add include header file Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * test: add include header file Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix Signed-off-by: suchang <chang.su@autocore.ai> * test: modify comments for spell-check Signed-off-by: suchang <chang.su@autocore.ai> * test: fix spell-check Signed-off-by: suchang <chang.su@autocore.ai> * test: const variable Signed-off-by: suchang <chang.su@autocore.ai> * fix build error Signed-off-by: suchang <chang.su@autocore.ai> * fix build error Signed-off-by: suchang <chang.su@autocore.ai> * fix build error Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * ci(pre-commit): autofix * variable to const Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix Co-authored-by: suchang <chang.su@autocore.ai> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> Co-authored-by: Shark <71419791+Sharrrrk@users.noreply.github.com>
* test: add test_points_to_costmap Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * add copyright Signed-off-by: suchang <chang.su@autocore.ai> * Update planning/costmap_generator/test/test_points_to_costmap.cpp Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * test: modify copyright Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * test: add include header file Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * test: add include header file Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix Signed-off-by: suchang <chang.su@autocore.ai> * test: modify comments for spell-check Signed-off-by: suchang <chang.su@autocore.ai> * test: fix spell-check Signed-off-by: suchang <chang.su@autocore.ai> * test: const variable Signed-off-by: suchang <chang.su@autocore.ai> * fix build error Signed-off-by: suchang <chang.su@autocore.ai> * fix build error Signed-off-by: suchang <chang.su@autocore.ai> * fix build error Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * ci(pre-commit): autofix * variable to const Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix Co-authored-by: suchang <chang.su@autocore.ai> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> Co-authored-by: Shark <71419791+Sharrrrk@users.noreply.github.com>
* test: add test_points_to_costmap Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * add copyright Signed-off-by: suchang <chang.su@autocore.ai> * Update planning/costmap_generator/test/test_points_to_costmap.cpp Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * test: modify copyright Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * test: add include header file Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * test: add include header file Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix Signed-off-by: suchang <chang.su@autocore.ai> * test: modify comments for spell-check Signed-off-by: suchang <chang.su@autocore.ai> * test: fix spell-check Signed-off-by: suchang <chang.su@autocore.ai> * test: const variable Signed-off-by: suchang <chang.su@autocore.ai> * fix build error Signed-off-by: suchang <chang.su@autocore.ai> * fix build error Signed-off-by: suchang <chang.su@autocore.ai> * fix build error Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * ci(pre-commit): autofix * variable to const Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix Co-authored-by: suchang <chang.su@autocore.ai> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> Co-authored-by: Shark <71419791+Sharrrrk@users.noreply.github.com>
* test: add test_points_to_costmap Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * add copyright Signed-off-by: suchang <chang.su@autocore.ai> * Update planning/costmap_generator/test/test_points_to_costmap.cpp Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> * test: modify copyright Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * test: add include header file Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * test: add include header file Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix Signed-off-by: suchang <chang.su@autocore.ai> * test: modify comments for spell-check Signed-off-by: suchang <chang.su@autocore.ai> * test: fix spell-check Signed-off-by: suchang <chang.su@autocore.ai> * test: const variable Signed-off-by: suchang <chang.su@autocore.ai> * fix build error Signed-off-by: suchang <chang.su@autocore.ai> * fix build error Signed-off-by: suchang <chang.su@autocore.ai> * fix build error Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix * ci(pre-commit): autofix * variable to const Signed-off-by: suchang <chang.su@autocore.ai> * ci(pre-commit): autofix Co-authored-by: suchang <chang.su@autocore.ai> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Kenji Miyake <31987104+kenji-miyake@users.noreply.github.com> Co-authored-by: Shark <71419791+Sharrrrk@users.noreply.github.com>
…line calculations (autowarefoundation#960) * [DEBUG] Launch planner with konsole + gdb Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * [TMP] debug svg Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * Improve performance of the in-loop calcLateralOffset Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * Store uncrossable lines as segments in a rtree to improve performance Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * [DEBUG] show uncrossable segments and the neirest bound point Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * Use custom calcLateralOffset to improve performance Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * Revert "[DEBUG] show uncrossable segments and the neirest bound point" This reverts commit f1085cb. * Revert "[TMP] debug svg" This reverts commit 37ba0a7. * Fix lateral distance calculation Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp> * Revert "[DEBUG] Launch planner with konsole + gdb" This reverts commit f4c9953. --------- Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
Signed-off-by: suchang chang.su@autocore.ai
Description
add test_points_to_costmap
Related links
Tests performed
Notes for reviewers
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.