Admit observed crossing areas before the unknown-road planning boundary
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"""Observed crossing-area permission for the static simulation contour.
|
||||
|
||||
A zebra is an area, not a set of paint islands. Admission retains a bounded
|
||||
metric footprint after a measured entry stop and observed sidewalk exit. Only
|
||||
metric footprint after a measured approach stop and observed sidewalk exit. Only
|
||||
current ground returns inside it can override unknown/carriageway semantics.
|
||||
This is not traffic right-of-way: range, body, freshness and object vetoes remain
|
||||
independent. Moving traffic needs a separately qualified gap/occlusion policy.
|
||||
@@ -120,8 +120,13 @@ class MarkedCrossing:
|
||||
if not exit_seen:
|
||||
state['state'] = 'incomplete-crossing'
|
||||
continue
|
||||
if np.linalg.norm(patch, axis=1).min() > self.geometry['length_m']/2+1.25:
|
||||
continue
|
||||
# Semantic permission must be established before native planning
|
||||
# can approach across the road's unknown-cell inflation boundary.
|
||||
# Requiring proximity to paint creates a circular precondition:
|
||||
# motion needs permission, permission needs the forbidden motion.
|
||||
# The measured footprint, exit and stopped observation bound this
|
||||
# static-scene exception; it never grants the intervening road or
|
||||
# replaces current swept-body/support/object admission.
|
||||
if self.stopped_since is None or now-self.stopped_since < self.stop_seconds:
|
||||
return {**state, 'state': 'waiting-for-stop'}
|
||||
# Connect marking to observed pedestrian entry/exit within the same
|
||||
|
||||
Reference in New Issue
Block a user