Dynamic Scheduling for Obstacle Avoidance inMobile