Lightweight Algorithms for Collision Avoidance Applications