So your robot has 2 servos for driving, one sensor for distance measuring (Ping) and you added another sensor for distance measuring (Sharp IR)? Did you also mount the Sharp sensor on a scanning servo?
Here is the thing that I think it happens: your robot drives around and at some point it uses the Sharp IR sensor together with (or at a short time) the Ping sensor. Both sensors draw a significant current, that can create a power surge. That means the voltage drops under the limit for a brown out to happen. So your sensors reset your micro. Add a big capacitor (like 1000uF at 16V) in paralel with your battery.
Another thing that may happen is your sensor reading code gets stuck somewhere and the driving servos don't get anymore pulses to drive. Use many rprintf and output them to the computer or LCD to see where the code gets stuck and fix it.