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(hazard_status_converter): hazard status converter subscribe emergency holding #9287

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

TetsuKawa
Copy link
Contributor

@TetsuKawa TetsuKawa commented Nov 11, 2024

Description

This PR add emergency holding subscriber and update emergency_holding which is in hazard_status topic .

Related links

Parent Issue:

How was this PR tested?

Please refer to the parent PR.

Notes for reviewers

None.

Interface changes

Topic changes

Additions and removals

Change type Topic Type Topic Name Message Type Description
Added Sub /system/emergency_holding tier4_system_msgs/msg/EmergencyHoldingState indicates whether mrm is in the emergency_holding state

Effects on system behavior

None.

@github-actions github-actions bot added the component:system System design and integration. (auto-assigned) label Nov 11, 2024
Copy link

github-actions bot commented Nov 11, 2024

Thank you for contributing to the Autoware project!

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

Please ensure:

@TetsuKawa TetsuKawa changed the title Feat/hazard status converter subscribe emergency holding feat(hazard_status_converter): hazard status converter subscribe emergency holding Nov 11, 2024
@TetsuKawa TetsuKawa self-assigned this Nov 11, 2024
@TetsuKawa TetsuKawa marked this pull request as ready for review November 11, 2024 06:45
@TetsuKawa TetsuKawa added the tag:run-build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Nov 11, 2024
Copy link
Contributor

@isamu-takagi isamu-takagi left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -117,7 +117,10 @@ void Converter::on_update(DiagGraph::ConstSharedPtr graph)
hazard.stamp = graph->updated_stamp();
hazard.status.level = get_system_level(hazard.status);
hazard.status.emergency = hazard.status.level == HazardStatus::SINGLE_POINT_FAULT;
hazard.status.emergency_holding = false;

auto is_emergency_holding = sub_emergency_holding_.takeData();
Copy link
Contributor

Choose a reason for hiding this comment

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

nits

Suggested change
auto is_emergency_holding = sub_emergency_holding_.takeData();
const auto is_emergency_holding = sub_emergency_holding_.takeData();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:system System design and integration. (auto-assigned) tag: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