Let the robot stop for a while when an object detected