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(lidar_centerpoint): yaw norm filter #1728

Merged

Conversation

knzo25
Copy link
Contributor

@knzo25 knzo25 commented Aug 30, 2022

Description

Added a filter to the centerpoint estimations to ignore detections that have a yaw angle norm below a certain threshold.

Centerpoint rather than estimate the rotation directly, estimates the cosine and sine of the angle.
As such the norm of the cos/sin pair should be unitary, but since the inference does not enforce this property, it may not hold.
Empirically, in those cases where the property does not hold, there is a high chance that the detection is wrong, so we filter them out.

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.

@knzo25 knzo25 requested a review from yukke42 August 30, 2022 05:57
@knzo25 knzo25 self-assigned this Aug 30, 2022
@knzo25
Copy link
Contributor Author

knzo25 commented Aug 30, 2022

@yukke42 should I add a certain value to the parameter from the launcher?

@yukke42
Copy link
Contributor

yukke42 commented Aug 30, 2022

@yukke42 should I add a certain value to the parameter from the launcher?

@knzo25 Yes, please!

@codecov
Copy link

codecov bot commented Aug 30, 2022

Codecov Report

Merging #1728 (7cdd199) into main (37e8c99) will decrease coverage by 0.53%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1728      +/-   ##
==========================================
- Coverage   10.80%   10.26%   -0.54%     
==========================================
  Files        1217     1204      -13     
  Lines       81490    86657    +5167     
  Branches    20225    20020     -205     
==========================================
+ Hits         8804     8899      +95     
- Misses      63495    68497    +5002     
- Partials     9191     9261      +70     
Flag Coverage Δ *Carryforward flag
differential 0.00% <0.00%> (?)
total 10.26% <0.00%> (-0.54%) ⬇️ Carriedforward from f389eae

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

Impacted Files Coverage Δ
...ion_based_fusion/src/pointpainting_fusion/node.cpp 0.00% <0.00%> (ø)
...t/include/lidar_centerpoint/centerpoint_config.hpp 0.00% <0.00%> (ø)
..._centerpoint/lib/postprocess/postprocess_kernel.cu 0.00% <ø> (ø)
perception/lidar_centerpoint/src/node.cpp 0.00% <0.00%> (ø)
...clude/shape_estimation/corrector/car_corrector.hpp 0.00% <0.00%> (ø)
...ception/shape_estimation/lib/filter/car_filter.cpp 0.00% <ø> (ø)
...lanner/scene_module/pull_over/pull_over_module.hpp 0.00% <ø> (ø)
...lanner/include/behavior_path_planner/utilities.hpp 0.00% <ø> (-27.78%) ⬇️
...or_path_planner/src/behavior_path_planner_node.cpp 0.22% <0.00%> (+<0.01%) ⬆️
...er/src/scene_module/pull_over/pull_over_module.cpp 0.00% <0.00%> (ø)
... and 714 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@yukke42 yukke42 requested a review from miursh August 30, 2022 08:34
@yukke42 yukke42 added the component:perception Advanced sensor data processing and environment understanding. (auto-assigned) label Aug 30, 2022
@knzo25
Copy link
Contributor Author

knzo25 commented Aug 30, 2022

@yukke42
Left the parameter with a value of 0.5 in the launcher.
Using a bag from XX1 that I was using for calibration it avoids some 90 degree flips in cars

Copy link
Contributor

@yukke42 yukke42 left a comment

Choose a reason for hiding this comment

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

LGTM

@knzo25 knzo25 merged commit f69f612 into autowarefoundation:main Sep 7, 2022
boyali referenced this pull request in boyali/autoware.universe Sep 28, 2022
* Added a filter by the norm of the yaw

* Fixed typos and tested with rosbags

* Added the yaw norm parameter in the launch file
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
* Added a filter by the norm of the yaw

* Fixed typos and tested with rosbags

* Added the yaw norm parameter in the launch file
boyali referenced this pull request in boyali/autoware.universe Oct 3, 2022
* Added a filter by the norm of the yaw

* Fixed typos and tested with rosbags

* Added the yaw norm parameter in the launch file
0x126 referenced this pull request in tier4/autoware.universe Oct 17, 2022
* Added a filter by the norm of the yaw

* Fixed typos and tested with rosbags

* Added the yaw norm parameter in the launch file
boyali referenced this pull request in boyali/autoware.universe Oct 19, 2022
* Added a filter by the norm of the yaw

* Fixed typos and tested with rosbags

* Added the yaw norm parameter in the launch file
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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants