If the robot gets to a curb, it will sense if there is any motion .
How will it determine that it has gotten to a curb?
Motion where? What is moving?
If you are seriously expecting the robot to detect cars whizzing by, you need another project. You are out of your depth on this one.