zymera.sensor
sensor
Host-side visibility sensor (a numpy analysis tool, not on the jit path).
v1 is non-occluded: a cell is visible from pos iff it is within radius
under the chosen metric and is not a wall. Occlusion (ray-casting) is a P2
extension when an experiment needs it. Positions are (row, col).
visible_cells
visible_cells(pos, wall, radius, metric='chebyshev')
Return a (H, W) bool mask of cells visible from pos.
Source code in zymera/sensor.py
12 13 14 15 16 17 18 19 20 21 22 23 24 | |