feat(tier4_state_rviz_plugin): add init by gnss button #4392
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add a button to initialize localization by GNSS to the state panel.
![image](https://private-user-images.githubusercontent.com/9547070/258036930-a22a0aba-85bd-4b63-98e4-04353b4d153e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTEwOTMsIm5iZiI6MTczOTU5MDc5MywicGF0aCI6Ii85NTQ3MDcwLzI1ODAzNjkzMC1hMjJhMGFiYS04NWJkLTRiNjMtOThlNC0wNDM1M2I0ZDE1M2UucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTVUMDMzOTUzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZGE5ZDVjNjlmNTU0YWUzNjE5MTk5MDZlNjM3NzllNzY3OWMzMzM3NTY2ODQ2OTQ3YWI4ZTIxMjdmNjgwYmUwYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.PiNYHrMgLNntSTaIu2O26DQtOkjqnIecMTkmbzXBoVU)
When this button is clicked,
/api/localization/initialize
service is called with no arguments.Calling
/api/localization/initialize
with no arguments means that gnss pose is used for pose initialization.autoware.universe/localization/pose_initializer/src/pose_initializer/pose_initializer_core.cpp
Line 90 in d70c718
Related Links
TIER IV INTERNAL LINK
Tests performed
Check that the pose is initialized when the button is pushed in the logging simulation without automatic_pose_initializer.
Effects on system behavior
Not applicable.
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.