Curved surface patches for rough terrain perception