@@ -9,6 +9,8 @@ from shapely.ops import unary_union
fromtypingimportList
fromcollectionsimportdeque
importmath
importnumpyasnp
importtime
...
...
@@ -22,19 +24,20 @@ class CompleteShadowOcclusionManager(AbstractOcclusionManager):
self,
scenario:AbstractScenario,
horizon_threshold:float=4800,# meters since that is how far a standing human can see unblocked before the curvature of the earth cuts your line of sight
min_rad:float=0.035# minimum radians that the vehicle must take up to be observed (0.035 = aprox 2 degrees)
min_rad:float=0.035,# minimum radians that the vehicle must take up to be observed (0.035 = aprox 2 degrees)
num_wedges:float=180# gives wedge width of roughly 2 degrees
corners.append((corner.x-observer.center.x,corner.y-observer.center.y))#we shift the corners and move them to a different data structure we can play with