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(tier4_autoware_utils): add the API to check if taken data is stale #7404

Merged

Conversation

soblin
Copy link
Contributor

@soblin soblin commented Jun 10, 2024

Description

add takeNewData to polling subscriber

use case: current PollingSubscriber::takeData() returns the previously-taken data if popping from dds queue failed. But sometimes we want to know if the taken-data is "stale". For example we want to process lanelet_map message only when the process is called initially or the map has changed by differential loading.

Related links

Tests performed

lane_departure_checker becomes lightweight.

Notes for reviewers

Interface changes

none

ROS Topic Changes

ROS Parameter Changes

Effects on system behavior

none

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

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.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

@github-actions github-actions bot added the component:common Common packages from the autoware-common repository. (auto-assigned) label Jun 10, 2024
@soblin soblin added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jun 10, 2024
@soblin soblin force-pushed the feat/polling-subsciber-add-stale-api branch 2 times, most recently from f3c3427 to 7be26d0 Compare June 10, 2024 08:22
@github-actions github-actions bot added the component:control Vehicle control algorithms and mechanisms. (auto-assigned) label Jun 10, 2024
Copy link
Contributor

@kyoichi-sugahara kyoichi-sugahara left a comment

Choose a reason for hiding this comment

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

Thank you so much!!!
ok for the lane departure checker change.

@soblin soblin enabled auto-merge (squash) June 10, 2024 08:31
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
@soblin soblin force-pushed the feat/polling-subsciber-add-stale-api branch from 164d612 to b396ac1 Compare June 10, 2024 11:27
@soblin soblin merged commit cb557db into autowarefoundation:main Jun 10, 2024
24 checks passed
@soblin soblin deleted the feat/polling-subsciber-add-stale-api branch June 10, 2024 11:31
KhalilSelyan pushed a commit that referenced this pull request Jul 22, 2024
…le (#7404)

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:common Common packages from the autoware-common repository. (auto-assigned) 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.

3 participants