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(pose_initilizer): support gnss/imu pose estimator #2904

Merged
merged 24 commits into from
Mar 2, 2023
Merged

feat(pose_initilizer): support gnss/imu pose estimator #2904

merged 24 commits into from
Mar 2, 2023

Conversation

rsasaki0109
Copy link
Member

@rsasaki0109 rsasaki0109 commented Feb 17, 2023

Description

This is a modification of pose_initilizer to use GNSS/IMU pose estimtator.
When parameter ndt_enabled is true, NdtLocalizationTriggerModule.
When parameter ekf_enabled is true, EkfLocalizationTriggerModule.

Related discussions are here.
#2848 (comment)

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.

@github-actions github-actions bot added the component:localization Vehicle's position determination in its environment. (auto-assigned) label Feb 17, 2023
@codecov
Copy link

codecov bot commented Feb 17, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.20 ⚠️

Comparison is base (f76977a) 11.99% compared to head (4e8dd16) 11.80%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2904      +/-   ##
==========================================
- Coverage   11.99%   11.80%   -0.20%     
==========================================
  Files        1314     1315       +1     
  Lines       91445    90718     -727     
  Branches    24240    24180      -60     
==========================================
- Hits        10971    10709     -262     
+ Misses      69113    68831     -282     
+ Partials    11361    11178     -183     
Flag Coverage Δ *Carryforward flag
differential 8.53% <0.00%> (?)
total 11.81% <ø> (-0.19%) ⬇️ Carriedforward from 3d4e2e0

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

Impacted Files Coverage Δ
...se_initializer/ekf_localization_trigger_module.cpp 0.00% <0.00%> (ø)
...se_initializer/ndt_localization_trigger_module.cpp 0.00% <0.00%> (ø)
...zer/src/pose_initializer/pose_initializer_core.cpp 0.00% <0.00%> (ø)
...lude/obstacle_avoidance_planner/common_structs.hpp 0.00% <0.00%> (-48.58%) ⬇️
...vehicle_model/vehicle_model_bicycle_kinematics.cpp 52.17% <0.00%> (-39.50%) ⬇️
...clude/obstacle_avoidance_planner/mpt_optimizer.hpp 62.50% <0.00%> (-22.12%) ⬇️
...ner/include/behavior_path_planner/data_manager.hpp 0.00% <0.00%> (-21.43%) ⬇️
...terpolation/src/spline_interpolation_points_2d.cpp 35.10% <0.00%> (-15.39%) ⬇️
planning/obstacle_avoidance_planner/src/node.cpp 0.12% <0.00%> (-13.46%) ⬇️
...nner/src/vehicle_model/vehicle_model_interface.cpp 75.00% <0.00%> (-10.72%) ⬇️
... and 188 more

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

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@rsasaki0109
Copy link
Member Author

This implementation was not adopted due to cyclomatic complexity
afdadb3

@rsasaki0109 rsasaki0109 changed the title feat: Support GNSS/IMU pose estimator in pose_initilizer feat: support gnss/imu pose estimator in pose_initilizer Feb 19, 2023
@rsasaki0109 rsasaki0109 changed the title feat: support gnss/imu pose estimator in pose_initilizer feat(pose_initilizer): support gnss/imu pose estimator Feb 19, 2023
@rsasaki0109 rsasaki0109 marked this pull request as ready for review February 19, 2023 01:43
@rsasaki0109 rsasaki0109 assigned YamatoAndo and unassigned YamatoAndo Feb 19, 2023
@rsasaki0109
Copy link
Member Author

@YamatoAndo
Hello. I have extended pose_initilizer for gnss/imu pose estimator, please review.

@rsasaki0109 rsasaki0109 mentioned this pull request Feb 20, 2023
4 tasks
@isamu-takagi
Copy link
Contributor

@rsasaki0109
Is the copyright 2022 intentional? It is recommended to use the same year if it is almost the same as the original file, and 2023 if there is a lot of new code.

@rsasaki0109
Copy link
Member Author

Just conforming to localization_trigger_module.cpp, no deeper meaning. I think your suggestion is good and I will modify it.

rsasaki0109 and others added 6 commits February 21, 2023 16:09
Signed-off-by: Ryohei Sasaki <[email protected]>
Signed-off-by: Ryohei Sasaki <[email protected]>
Signed-off-by: Ryohei Sasaki <[email protected]>
…ation_trigger_module.cpp

Co-authored-by: Takagi, Isamu <[email protected]>
Signed-off-by: Ryohei Sasaki <[email protected]>
…ation_trigger_module.cpp

Co-authored-by: Takagi, Isamu <[email protected]>
Signed-off-by: Ryohei Sasaki <[email protected]>
Signed-off-by: Ryohei Sasaki <[email protected]>
@isamu-takagi
Copy link
Contributor

Is the copyright 2022 intentional? It is recommended to use the same year if it is almost the same as the original file, and 2023 if there is a lot of new code.

Sorry, this was a comment on the new file. Existing files will retain their original publication year. So please don't change ekf_localization_trigger_module.hpp.

@github-actions github-actions bot added type:documentation Creating or refining documentation. (auto-assigned) component:launch Launch files, scripts and initialization tools. (auto-assigned) labels Feb 23, 2023
Copy link
Contributor

@isamu-takagi isamu-takagi left a comment

Choose a reason for hiding this comment

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

LGTM

@rsasaki0109
Copy link
Member Author

@YamatoAndo @KeisukeShima
I would appreciate a review when you are free.

@rsasaki0109
Copy link
Member Author

rsasaki0109 commented Mar 2, 2023

@YamatoAndo @isamu-takagi
I don't have write permission, so could you please merge them?

@isamu-takagi isamu-takagi merged commit ede21f3 into autowarefoundation:main Mar 2, 2023
@rsasaki0109 rsasaki0109 deleted the feat/extension_of_pose-intializar branch March 2, 2023 08:34
1222-takeshi pushed a commit to 1222-takeshi/autoware.universe that referenced this pull request Mar 6, 2023
…ation#2904)

* Support GNSS/IMU pose estimator

Signed-off-by: Ryohei Sasaki <[email protected]>

* style(pre-commit): autofix

Signed-off-by: Ryohei Sasaki <[email protected]>

* Revert gnss/imu support

Signed-off-by: Ryohei Sasaki <[email protected]>

* Support GNSS/IMU pose estimator

Signed-off-by: Ryohei Sasaki <[email protected]>

* style(pre-commit): autofix

Signed-off-by: Ryohei Sasaki <[email protected]>

* Separate EKF and NDT trigger modules

Signed-off-by: Ryohei Sasaki <[email protected]>

* Integrate activate and deactivate into sendRequest

Signed-off-by: Ryohei Sasaki <[email protected]>

* style(pre-commit): autofix

Signed-off-by: Ryohei Sasaki <[email protected]>

* Change sendRequest function arguments

Signed-off-by: Ryohei Sasaki <[email protected]>

* style(pre-commit): autofix

Signed-off-by: Ryohei Sasaki <[email protected]>

* Remove unused conditional branches

Signed-off-by: Ryohei Sasaki <[email protected]>

* Fix command name

Signed-off-by: Ryohei Sasaki <[email protected]>

* Change to snake_case

Signed-off-by: Ryohei Sasaki <[email protected]>

* Fix typos

Signed-off-by: Ryohei Sasaki <[email protected]>

* Update localization/pose_initializer/src/pose_initializer/ekf_localization_trigger_module.cpp

Co-authored-by: Takagi, Isamu <[email protected]>
Signed-off-by: Ryohei Sasaki <[email protected]>

* Update localization/pose_initializer/src/pose_initializer/ndt_localization_trigger_module.cpp

Co-authored-by: Takagi, Isamu <[email protected]>
Signed-off-by: Ryohei Sasaki <[email protected]>

* Update copyright year

Signed-off-by: Ryohei Sasaki <[email protected]>

* Set the copyright year of ekf_localization_module to 2022

Signed-off-by: Ryohei Sasaki <[email protected]>

* Delete unnecessary conditional branches

Signed-off-by: Ryohei Sasaki <[email protected]>

* Add ekf_enabled parameter

Signed-off-by: Ryohei Sasaki <[email protected]>

* Add #include <string>

Signed-off-by: Ryohei Sasaki <[email protected]>

---------

Signed-off-by: Ryohei Sasaki <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Ryohei Sasaki <[email protected]>
Co-authored-by: Takagi, Isamu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:launch Launch files, scripts and initialization tools. (auto-assigned) component:localization Vehicle's position determination in its environment. (auto-assigned) type:documentation Creating or refining documentation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants