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
  • Loading branch information
s-azumi committed Oct 24, 2022
1 parent cf91d1a commit e4bea47
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 e4bea47

Please sign in to comment.