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

fix(vehicle_cmd_gate): put back subscriber rather than using polling subsriber #7500

Merged

Conversation

go-sakayori
Copy link
Contributor

@go-sakayori go-sakayori commented Jun 15, 2024

Description

The previous PR changed the subscirbers to polling subscribers which is called in onTimer function. From the perspective of verifiability and latency, polling subscribers are restored to normal subscribers to achieve event-driven approach, except for turn indicators, hazard lights, and gear command. These 3 values are only referred in the onTimer function, and therefore the polling subscriber would be appropriate.

Tests performed

Could engage on PSim.
Screenshot from 2024-06-15 23-00-45

Effects on system behavior

Not applicable.

Interface changes

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:control Vehicle control algorithms and mechanisms. (auto-assigned) label Jun 15, 2024
@go-sakayori go-sakayori changed the title fix(vehicle_cmd_gate):put back subscriber rather than using polling subsriber fix(vehicle_cmd_gate): put back subscriber rather than using polling subsriber Jun 15, 2024
@go-sakayori go-sakayori marked this pull request as ready for review June 16, 2024 22:10
Copy link
Contributor

@TakaHoribe TakaHoribe left a comment

Choose a reason for hiding this comment

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

Some callbacks can use the polling subscriber since it just changes the member variables.

However, it is a bit complicated and does not cause critical issues.

@go-sakayori go-sakayori added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jun 17, 2024
@go-sakayori go-sakayori enabled auto-merge (squash) June 17, 2024 06:38
@go-sakayori go-sakayori merged commit ae3b8d7 into autowarefoundation:main Jun 17, 2024
34 of 35 checks passed
@go-sakayori go-sakayori deleted the fix/vehicle_cmd_gate_subscriber branch June 17, 2024 06:54
simon-eisenmann-driveblocks pushed a commit to simon-eisenmann-driveblocks/autoware.universe that referenced this pull request Jun 26, 2024
…subsriber (autowarefoundation#7500)

put back polling subscribers to subscribers in neccesary cases

Signed-off-by: Go Sakayori <[email protected]>
Signed-off-by: Go Sakayori <[email protected]>
Signed-off-by: Simon Eisenmann <[email protected]>
KhalilSelyan pushed a commit that referenced this pull request Jul 22, 2024
…subsriber (#7500)

put back polling subscribers to subscribers in neccesary cases

Signed-off-by: Go Sakayori <[email protected]>
Signed-off-by: Go Sakayori <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:control Vehicle control algorithms and mechanisms. (auto-assigned) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants