-
Notifications
You must be signed in to change notification settings - Fork 631
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(autoware_vehicle_cmd_gate): accept same topic unless mode change occurs #8479
feat(autoware_vehicle_cmd_gate): accept same topic unless mode change occurs #8479
Conversation
Signed-off-by: shtokuda <[email protected]>
Signed-off-by: shtokuda <[email protected]>
Signed-off-by: shtokuda <[email protected]>
…github.com/shtokuda/autoware.universe into feat/vehicle_cmd_gate_check_cmd_continuity
Signed-off-by: shtokuda <[email protected]>
Signed-off-by: shtokuda <[email protected]>
…ontinuity of topics Signed-off-by: shtokuda <[email protected]> Co-authored-by: Takamasa Horibe <[email protected]>
Signed-off-by: shtokuda <[email protected]>
… not receiving Signed-off-by: shtokuda <[email protected]>
Signed-off-by: shtokuda <[email protected]>
…e-commit.ci Signed-off-by: shtokuda <[email protected]>
…nsistency Signed-off-by: shtokuda <[email protected]>
…ck_cmd_continuity
Signed-off-by: shtokuda <[email protected]>
…github.com/shtokuda/autoware.universe into feat/vehicle_cmd_gate_check_cmd_continuity
…function Signed-off-by: shtokuda <[email protected]>
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
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 Thank you
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8479 +/- ##
=======================================
Coverage 23.86% 23.87%
=======================================
Files 1380 1384 +4
Lines 101866 101910 +44
Branches 38798 38800 +2
=======================================
+ Hits 24314 24327 +13
- Misses 75120 75153 +33
+ Partials 2432 2430 -2
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
… occurs (autowarefoundation#8479) * add prev_commands_ and check cmd's time stamp Signed-off-by: shtokuda <[email protected]> * add timestamp when is_engaged is false Signed-off-by: shtokuda <[email protected]> * style(pre-commit): autofix * add initialization for hazard_light timestamp in Commands Signed-off-by: shtokuda <[email protected]> * style(pre-commit): autofix * update README.md Signed-off-by: shtokuda <[email protected]> * style(pre-commit): autofix * fix typo Signed-off-by: shtokuda <[email protected]> * fix(autoware_vehicle_cmd_gate): rename the function that checks the continuity of topics Signed-off-by: shtokuda <[email protected]> Co-authored-by: Takamasa Horibe <[email protected]> * style(pre-commit): autofix * feat(autoware_vehicle_cmd_gate): check continuity using shared_ptr Signed-off-by: shtokuda <[email protected]> * feat(autoware_vehicle_cmd_gate): add INFO message for topics that are not receiving Signed-off-by: shtokuda <[email protected]> * fix template function to pass build-and-test-differential Signed-off-by: shtokuda <[email protected]> * fix(autoware_vehicle_cmd_gate): add #include <string> according to pre-commit.ci Signed-off-by: shtokuda <[email protected]> * fix(vehicle_cmd_gate) add underscores to member variable names for consistency Signed-off-by: shtokuda <[email protected]> * style(pre-commit): autofix * feat(vehicle_cmd_gate): accept same topic unless mode change occurs Signed-off-by: shtokuda <[email protected]> * feat(vehicle_cmd_gate): add default topic_name to getContinuousTopic function Signed-off-by: shtokuda <[email protected]> --------- Signed-off-by: shtokuda <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Takamasa Horibe <[email protected]> Co-authored-by: Shumpei Wakabayashi <[email protected]>
… occurs (autowarefoundation#8479) * add prev_commands_ and check cmd's time stamp Signed-off-by: shtokuda <[email protected]> * add timestamp when is_engaged is false Signed-off-by: shtokuda <[email protected]> * style(pre-commit): autofix * add initialization for hazard_light timestamp in Commands Signed-off-by: shtokuda <[email protected]> * style(pre-commit): autofix * update README.md Signed-off-by: shtokuda <[email protected]> * style(pre-commit): autofix * fix typo Signed-off-by: shtokuda <[email protected]> * fix(autoware_vehicle_cmd_gate): rename the function that checks the continuity of topics Signed-off-by: shtokuda <[email protected]> Co-authored-by: Takamasa Horibe <[email protected]> * style(pre-commit): autofix * feat(autoware_vehicle_cmd_gate): check continuity using shared_ptr Signed-off-by: shtokuda <[email protected]> * feat(autoware_vehicle_cmd_gate): add INFO message for topics that are not receiving Signed-off-by: shtokuda <[email protected]> * fix template function to pass build-and-test-differential Signed-off-by: shtokuda <[email protected]> * fix(autoware_vehicle_cmd_gate): add #include <string> according to pre-commit.ci Signed-off-by: shtokuda <[email protected]> * fix(vehicle_cmd_gate) add underscores to member variable names for consistency Signed-off-by: shtokuda <[email protected]> * style(pre-commit): autofix * feat(vehicle_cmd_gate): accept same topic unless mode change occurs Signed-off-by: shtokuda <[email protected]> * feat(vehicle_cmd_gate): add default topic_name to getContinuousTopic function Signed-off-by: shtokuda <[email protected]> --------- Signed-off-by: shtokuda <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Takamasa Horibe <[email protected]> Co-authored-by: Shumpei Wakabayashi <[email protected]>
Description
In this PR, we check the timestamp of input topics to avoid using old topics. However, if the timer callback function of vehicle_cmd_gate has higher rate than subscribed topics, the callback function subscribes same topic and shows debug message.
I think it's ok to subscribe same topic if there is no mode change and make this PR.
In addition, not all topics should be published after mode change, such as warning light. I modified getContinuousTopic function to select whether to show debug message for each topic.
Related links
#8084
Tests performed
Notes for reviewers
By accepting the same topics, it is not possible to check if the topics is updated within the same mode, but this is not a problem because other functions monitor rate drops
Interface changes
None
ROS Topic Changes
ROS Parameter Changes
Effects on system behavior
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.