To compute the desired velocityΒΆ
-
cromosim.domain.Domain.
compute_desired_velocity
(self) To compute the geodesic distance to the doors in using a fast-marching method. The opposite of the gradient of this distance corresponds to the desired velocity which permits to reach the closest door
- Returns
- door_distancenumpy array
distance to the closest door
- desired_velocity_Xnumpy array
opposite of the gradient of the door distance, x component
- desired_velocity_Ynumpy array
opposite of the gradient of the door distance, y component