Skip to content

Commit

Permalink
fix: add check for external_emergency_stop_heartbeat_received_time to…
Browse files Browse the repository at this point in the history
… isDataReady

Signed-off-by: Azumi Suzuki <azumi.suzuki@tier4.jp>
  • Loading branch information
s-azumi committed Nov 8, 2022
1 parent da9e5f0 commit 8d9d08b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions control/vehicle_cmd_gate/src/vehicle_cmd_gate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,13 @@ bool VehicleCmdGate::isDataReady()
}
}

if (use_external_emergency_stop_) {
if (!external_emergency_stop_heartbeat_received_time_) {
RCLCPP_WARN(get_logger(), "external_emergency_stop_heartbeat_received_time_ is false");
return false;
}
}

return true;
}

Expand Down

0 comments on commit 8d9d08b

Please sign in to comment.