-
Notifications
You must be signed in to change notification settings - Fork 682
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(tier4_vehicle_rviz_plugin): add acceleration visualization plugin to RViz #4506
feat(tier4_vehicle_rviz_plugin): add acceleration visualization plugin to RViz #4506
Conversation
cdd039d
to
edd6673
Compare
edd6673
to
e544238
Compare
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.
Thank you for your PR 👍
My Feedback:
Is it possible to remove the limit part from this plugin as I would like to create it as a separate plugin?
https://github.com/autowarefoundation/autoware.universe/pull/4506/files#diff-b668fdfacd30844d8af0cdcaee2742a5c251f497dbf82ebbbd2793d88a9aceb1R182
Since the limiting acceleration is specified by a parameter, it is better to indicate it.
Agree, it is not necessary to have a limit here. I will try update these parts. |
88bcdbb
to
edd6673
Compare
(It is ok not to force push the new commit but just add another commit because we will squash merge this PR.) |
Change two places:
|
@Owen-Liuyuxuan |
f72d868
to
8076aab
Compare
@Owen-Liuyuxuan |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #4506 +/- ##
==========================================
- Coverage 14.89% 14.86% -0.03%
==========================================
Files 1519 1520 +1
Lines 104972 105123 +151
Branches 31986 31986
==========================================
Hits 15631 15631
- Misses 72274 72425 +151
Partials 17067 17067
*This pull request uses carry forward flags. Click here to find out more.
☔ View full report in Codecov by Sentry. |
@Owen-Liuyuxuan |
common/tier4_vehicle_rviz_plugin/src/tools/acceleration_meter.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp>
… property_label_scale_ not responding Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp>
Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp>
Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp>
…text of acceleration meter, and delte the parameter of property_label_value Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp>
14a8de5
to
02a3a8f
Compare
(Please check tomorrow.)
|
common/tier4_vehicle_rviz_plugin/src/tools/acceleration_meter.hpp
Outdated
Show resolved
Hide resolved
…/min acceration; set threshold for reconfiguring emergency speed Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp>
…warefoundation/autoware.universe#4506 Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp>
@Owen-Liuyuxuan -> updated already |
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.
LGTM! I also tested with Psim.
Wating for @yukkysaito -san approval.
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.
LGTM
… default (#499) * feat: add acceleration meter for debugging, disabled by default; autowarefoundation/autoware.universe#4506 Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp> * not directly setting pixel numbers in rviz for display on screen with various resolutions Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp> --------- Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp> Co-authored-by: Owen-Liuyuxuan <uken.ryu@tier4.jp>
…n to RViz (autowarefoundation#4506) * feat: add acceleration visualization plugin to RVIZ Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp> * feat: add RVIZ plugin for acceleration; remove limit text; debugging: property_label_scale_ not responding Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp> * style(pre-commit): autofix Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp> * fix typo in acceleration Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp> * fix a bug in keeping using abs(accel) to compute meter angle; delete text of acceleration meter, and delte the parameter of property_label_value Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp> * feat: separate the setting of max/min emergency threshold; update max/min acceration; set threshold for reconfiguring emergency speed Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp> * style(pre-commit): autofix --------- Signed-off-by: Owen-Liuyuxuan <uken.ryu@tier4.jp> Co-authored-by: Owen-Liuyuxuan <uken.ryu@tier4.jp> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Description
Add an acceleration meter plugin for debugging on RVIZ.
Tests performed
PSimulation and Rosbag simulation.
Interface changes
The new plugin relies on topics like /localization/acceleration, and expose plugin parameters as described in changes in README.
Effects on system behavior
A new panel recording acceleration is expected to opened on the right of speed panel.
![Screenshot from 2023-08-04 13-48-00](https://private-user-images.githubusercontent.com/31618608/258307050-0d38173c-3724-4c1a-b6f5-0e2d5937a0e5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTE1MTAsIm5iZiI6MTczOTU5MTIxMCwicGF0aCI6Ii8zMTYxODYwOC8yNTgzMDcwNTAtMGQzODE3M2MtMzcyNC00YzFhLWI2ZjUtMGUyZDU5MzdhMGU1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDAzNDY1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThiYzg1N2RlYTBhMWRmNDc1NTI4ZDEyMDhhYjk0NWZhMjhmNjFiNjVhMjMzM2ZlNGU1YTY1YjliODFkNGU0Y2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.xWHRdaL57lsrOMoE47ccGGdrL_MbJm5vIddo8GjGynA)
The center text should turn red (by default) if acceleration is larger than a max-threshold (re-configurable on Rviz), or smaller than a min-threshold. (In the screenshot we manually reconfigured the thresholds to demonstrate the behaviour)
![Screenshot from 2023-08-04 13-48-45](https://private-user-images.githubusercontent.com/31618608/258307085-db68c339-9ede-4fac-b65f-fb924bd41649.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1OTE1MTAsIm5iZiI6MTczOTU5MTIxMCwicGF0aCI6Ii8zMTYxODYwOC8yNTgzMDcwODUtZGI2OGMzMzktOWVkZS00ZmFjLWI2NWYtZmI5MjRiZDQxNjQ5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDAzNDY1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc2Y2VlMmYxODliZTE3YTczN2E4MjVlYzc1ODBhMDE3NzFlNjkyNTNlMzE3MmU0NDhlMmQwODU4ZWM1NTNkYTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ENkvtceCEPgBtvR2I8w3qD7s5Fu8xCNInbuFHPVkhMs)
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.