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(autoware_vehicle_cmd_gate): check the timestamp of input topics to avoid using old topics #1481

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

shtokuda
Copy link

Description

cherry-pick:
autowarefoundation#8479
autowarefoundation#8084

Related links

Parent Issue:

  • Link

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

shtokuda and others added 2 commits August 21, 2024 14:19
…to avoid using old topics (autowarefoundation#8084)

* add prev_commands_ and check cmd's time stamp

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* add timestamp when is_engaged is false

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* style(pre-commit): autofix

* add initialization for hazard_light timestamp in Commands

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* style(pre-commit): autofix

* update README.md

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* style(pre-commit): autofix

* fix typo

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* fix(autoware_vehicle_cmd_gate): rename the function that checks the continuity of topics

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* style(pre-commit): autofix

* feat(autoware_vehicle_cmd_gate): check continuity using shared_ptr

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* feat(autoware_vehicle_cmd_gate): add INFO message for topics  that are not receiving

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* fix template function to pass build-and-test-differential

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* fix(autoware_vehicle_cmd_gate): add #include <string>  according to pre-commit.ci

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* fix(vehicle_cmd_gate) add underscores to member variable names for consistency

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* style(pre-commit): autofix

---------

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Co-authored-by: Shumpei Wakabayashi <42209144+shmpwk@users.noreply.github.com>
… occurs (autowarefoundation#8479)

* add prev_commands_ and check cmd's time stamp

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* add timestamp when is_engaged is false

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* style(pre-commit): autofix

* add initialization for hazard_light timestamp in Commands

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* style(pre-commit): autofix

* update README.md

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* style(pre-commit): autofix

* fix typo

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* fix(autoware_vehicle_cmd_gate): rename the function that checks the continuity of topics

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com>

* style(pre-commit): autofix

* feat(autoware_vehicle_cmd_gate): check continuity using shared_ptr

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* feat(autoware_vehicle_cmd_gate): add INFO message for topics  that are not receiving

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* fix template function to pass build-and-test-differential

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* fix(autoware_vehicle_cmd_gate): add #include <string>  according to pre-commit.ci

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* fix(vehicle_cmd_gate) add underscores to member variable names for consistency

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* style(pre-commit): autofix

* feat(vehicle_cmd_gate): accept same topic unless mode change occurs

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

* feat(vehicle_cmd_gate): add default topic_name to getContinuousTopic function

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>

---------

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Takamasa Horibe <horibe.takamasa@gmail.com>
Co-authored-by: Shumpei Wakabayashi <42209144+shmpwk@users.noreply.github.com>
@shtokuda shtokuda requested a review from shmpwk August 21, 2024 05:40
@shtokuda shtokuda changed the title Feat/vehicle cmd gate check cmd continuity feat(autoware_vehicle_cmd_gate): check the timestamp of input topics to avoid using old topics Aug 21, 2024
@shmpwk shmpwk merged commit 30a9576 into beta/v0.29.0 Aug 21, 2024
21 of 23 checks passed
@shmpwk shmpwk deleted the feat/vehicle_cmd_gate_check_cmd_continuity branch August 21, 2024 05:57
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants