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(autoware_external_cmd_converter): fix check_topic_state #7921

Merged

Conversation

shtokuda
Copy link
Contributor

@shtokuda shtokuda commented Jul 9, 2024

Description

This pull request addresses an issue where the availability of local/remote mode becomes false after the first activation. This is achieved by making necessary adjustments to fix the check_topic_state function.

Subscribed topics in autoware_external_converter are used only when GateMode is set to EXTERNAL. Therefore, I propose that check_topic_state should return true when GateMode is set to AUTO. This change will prevent the availability of local/remote mode from becoming false due to a mischeck.

Related links

Tests performed

Screencast.from.2024.07.08.17.38.38.webm

Notes for reviewers

Interface changes

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.

  • 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.

@shtokuda shtokuda requested a review from shmpwk July 9, 2024 11:01
@github-actions github-actions bot added the component:vehicle Vehicle-specific implementations, drivers, packages. (auto-assigned) label Jul 9, 2024
Copy link

github-actions bot commented Jul 9, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

shtokuda and others added 2 commits July 9, 2024 22:19
Co-authored-by: Shumpei Wakabayashi <42209144+shmpwk@users.noreply.github.com>
@shmpwk shmpwk added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jul 11, 2024
@shmpwk shmpwk enabled auto-merge (squash) July 11, 2024 02:21
@shmpwk shmpwk merged commit 4b26093 into autowarefoundation:main Jul 11, 2024
32 checks passed
@shtokuda shtokuda deleted the feat/enable_local_control_mode branch July 11, 2024 02:28
shtokuda added a commit to tier4/autoware.universe that referenced this pull request Jul 11, 2024
…foundation#7921)

* fix(autoware_external_cmd_converter): fix check_topic_state

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

* style(pre-commit): autofix

* Update vehicle/autoware_external_cmd_converter/src/node.cpp

Co-authored-by: Shumpei Wakabayashi <42209144+shmpwk@users.noreply.github.com>

* style(pre-commit): autofix

---------

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>
Co-authored-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: Shumpei Wakabayashi <42209144+shmpwk@users.noreply.github.com>
Ariiees pushed a commit to Ariiees/autoware.universe that referenced this pull request Jul 22, 2024
…foundation#7921)

* fix(autoware_external_cmd_converter): fix check_topic_state

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

* style(pre-commit): autofix

* Update vehicle/autoware_external_cmd_converter/src/node.cpp

Co-authored-by: Shumpei Wakabayashi <42209144+shmpwk@users.noreply.github.com>

* style(pre-commit): autofix

---------

Signed-off-by: shtokuda <shumpei.tokuda@tier4.jp>
Co-authored-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: Shumpei Wakabayashi <42209144+shmpwk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:vehicle Vehicle-specific implementations, drivers, packages. (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