The utility model provides an optical distance measuring device and a self-walking
robot, and the device comprises a transmitting
assembly which comprises a transmitting lens group and a light
transmitter, and the light
transmitter is used for transmitting a transmitting
light beam; a lower mirror
assembly; the receiving
assembly comprises a receiving mirror group and a light
receiver, and the received light reaches the light
receiver after passing through the receiving mirror group and the lower reflective mirror assembly; a light
transmitter is arranged on one side, close to the transmitting mirror group, of the circuit board, and a light
receiver is arranged on one side, far away from the transmitting mirror group, of the circuit board; the distance between the circuit board and the transmitting lens group is larger than the distance between the receiving lens group and the transmitting lens group. According to the optical distance measuring device provided by the invention, the
light emitter and the light receiver are both arranged on the circuit board, the integration and simplification of the structure are realized, and the receiving lens group and the transmitting lens group are arranged on the same side of the circuit board, so that the overall size of the transmitting lens group, the receiving lens group and the circuit board is reduced; conditions are provided for
miniaturization of the optical distance measuring device.