The invention discloses a self-moving robot, comprising a light emitter, emitting light in a specific wavelength range to the ground; an image capturing device, matched with the light emitter to receive the light in a specific wavelength range to form an image based on the light in a specific wavelength range; and the controller comprises a ground type recognizing module, which extracts features in the image to recognize the ground type in the image. By disposing the light emitter and the image capturing device which are matched to emit and receive the light in a specific wavelength range, an influence of the ambient light on the image is reduced, such that the self-moving robot can accurately recognize the ground type at every moment and in every location, even at night when there is no light source.