Collision avoidance for mobile machines