Skip to content

Commit

Permalink
Update vehicle/autoware_external_cmd_converter/src/node.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Shumpei Wakabayashi <42209144+shmpwk@users.noreply.github.com>
  • Loading branch information
shtokuda and shmpwk authored Jul 9, 2024
1 parent 8f9efc4 commit 556a926
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vehicle/autoware_external_cmd_converter/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,11 @@ void ExternalCmdConverterNode::check_topic_status(

bool ExternalCmdConverterNode::check_emergency_stop_topic_timeout()
{
if (current_gate_mode_ && current_gate_mode_->data == tier4_control_msgs::msg::GateMode::AUTO) {
if (!current_gate_mode_) {
return true;
}

if (current_gate_mode_->data == tier4_control_msgs::msg::GateMode::AUTO) {
latest_emergency_stop_heartbeat_received_time_ = nullptr;
}

Expand Down

0 comments on commit 556a926

Please sign in to comment.