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: output avoidance debug array whenever the avoidance module is enabled #835

Merged
merged 1 commit into from
May 9, 2022

Conversation

tkimura4
Copy link
Contributor

@tkimura4 tkimura4 commented Apr 28, 2022

Signed-off-by: tomoya.kimura tomoya.kimura@tier4.jp

Description

In the current implementaion, the avoidance debug array is not published when avoidance is not executed such the following case.
image

I change it to output avoidance debug array whenever the avoidance module is enabled.

I also changed to publish the avoidance debug array only at the end of calcAvoidancePlanningData.

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

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.
  • The PR is ready for merge.

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

@tkimura4
Copy link
Contributor Author

Test:
image
image
image
image
image
image

@codecov
Copy link

codecov bot commented Apr 28, 2022

Codecov Report

Merging #835 (6153dff) into main (e8e0042) will decrease coverage by 0.10%.
The diff coverage is 0.00%.

@@           Coverage Diff            @@
##            main    #835      +/-   ##
========================================
- Coverage   9.58%   9.48%   -0.11%     
========================================
  Files        925     925              
  Lines      57411   58022     +611     
  Branches    6863    6863              
========================================
  Hits        5502    5502              
- Misses     47384   47995     +611     
  Partials    4525    4525              
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 9.58% <0.00%> (ø) Carriedforward from e8e0042

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

Impacted Files Coverage Δ
...lanner/scene_module/avoidance/avoidance_module.hpp 0.00% <ø> (ø)
...ehavior_path_planner/src/behavior_tree_manager.cpp 0.00% <0.00%> (ø)
...er/src/scene_module/avoidance/avoidance_module.cpp 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8e0042...6153dff. Read the comment docs.

@TakaHoribe
Copy link
Contributor

TakaHoribe commented Apr 28, 2022

@zulfaqar-azmi-t4 Could you take a test and review?

…nabled

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
@wep21 wep21 force-pushed the feat/avoidance_debug branch from e02380a to 6153dff Compare May 1, 2022 07:35
Copy link
Contributor

@taikitanaka3 taikitanaka3 left a comment

Choose a reason for hiding this comment

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

LGTM

  • multiple object case
    image
    image
    image

@zulfaqar-azmi-t4
Copy link
Contributor

zulfaqar-azmi-t4 commented May 8, 2022

@tkimura4
Thank you very much kimura-san for fixing this part.

I've conducted the test with approval turned on as default and no approval as default.

For approval turned on as default:

Note from video below:

With single and multiple object case, it works great.

The details from calcAvoidanceTargetObjects and calcRawShiftPointsFromObjects are successfully logged.

video2.mp4

For no approval as default

From the observation, the seems to be able to capture details from calcAvoidanceTargetObjects well. On the other hand, details from calcRawShiftPointsFromObjects seems to be a bit off.

video1.mp4
video3.mp4

@tkimura4 tkimura4 merged commit 27919a8 into autowarefoundation:main May 9, 2022
@tkimura4 tkimura4 deleted the feat/avoidance_debug branch May 9, 2022 01:25
TakaHoribe referenced this pull request in tier4/autoware.universe May 18, 2022
…nabled (#835)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
tkimura4 referenced this pull request in tier4/autoware.universe Jun 8, 2022
…nabled (#835)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
tkimura4 referenced this pull request in tier4/autoware.universe Jun 8, 2022
…nabled (#835)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
tkimura4 added a commit to tkimura4/autoware.universe that referenced this pull request Jun 16, 2022
…nabled (autowarefoundation#835)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
tkimura4 referenced this pull request in tier4/autoware.universe Jun 24, 2022
* fix: behavior path multi thread

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* add mutex unlock

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* feat(behavior_path_planner): debug messages for failed avoidance (#694)

* feat(behavior_path_planner): debug message for avoidance

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* fix: make_shared for the pointers

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* chore: pre-commit

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* fix: remove related DEBUG_PRINT

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* chore: naming, add debug to the variable name

This is so that people can infer mutable to debug, therefore reducing the amount
of time for debugging other things

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* fix: object id is written as string instead of uint8x16

Also fix getUuidStr function to reflect the actual hex value.
the function is moved to avoidance_util as it better served as helper function.

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* chore: fix spelling

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* fix: display all 32 uuid characters

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* chore: remove unnecessary header

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* feat: support more debug message

Note: need further refactoring, due to multiple similar code, plus duplicate printing.

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* fix mutiplication by introducing global variables

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* header stamp to get the clock

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* fix: renaming the type to show clearer intent of the type

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

Co-authored-by: Tomoya Kimura <tomoya.kimura@tier4.jp>
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* fix(behavior_path_planner): getAvoidanceDebugMsgArray caused crash (#828)

this is due to the assignment to pointer without guards in the function

Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>

* feat: output avoidance debug array whenever the avoidance module is enabled (#835)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* fix: behavior path avoidance debug

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

Co-authored-by: Zulfaqar Azmi <93502286+zulfaqar-azmi-t4@users.noreply.github.com>
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
…nabled (tier4#835)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
…nabled (tier4#835)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
…nabled (tier4#835)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
…nabled (tier4#835)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
iwatake2222 pushed a commit to iwatake2222/autoware.universe that referenced this pull request Jan 17, 2025
Signed-off-by: Yamato Ando <yamato.ando@tier4.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants