Planning for collision detection