feat(perception): expire costmap permissions per cell
This commit is contained in:
@@ -79,6 +79,13 @@ def derive_layer(
|
||||
raise RealtimeContractError("derived layer dependencies changed")
|
||||
if any(x.epoch_id != epoch_id for x in inputs):
|
||||
raise RealtimeContractError("derived input belongs to another epoch")
|
||||
_integer(source_sequence, "source_sequence")
|
||||
_integer(source_time_ns, "source_time_ns")
|
||||
_integer(oldest_required_input_time_ns, "oldest_required_input_time_ns")
|
||||
if oldest_required_input_time_ns > source_time_ns or any(
|
||||
x.source_time_ns is not None and x.source_time_ns > source_time_ns for x in inputs
|
||||
):
|
||||
raise RealtimeContractError("derived layer references a future input")
|
||||
if any(x.state == "unavailable" for x in inputs):
|
||||
return LayerEvidence(layer, epoch_id, None, None, "unavailable", None)
|
||||
stamps = [oldest_required_input_time_ns]
|
||||
|
||||
Reference in New Issue
Block a user