A computer-implemented distance detection method for a cleaning robot, comprising: acquiring detection data of an obstacle detector of the cleaning robot, determining, according to the detection data, whether a distance between the cleaning robot and an obstacle reaches a first distance, wherein the first distance is a distance between the cleaning robot and the obstacle at a moment when a changing trend of the detection data fits a preset changing trend, wherein the obstacle detector comprises a signal transmitting module and a signal receiving module, wherein the signal transmitting module and the signal receiving module are arranged according to a preset angle and a preset distance, such that an overlapping area exists between a first path and a second path, the first path being an area covered by a first signal transmitted between the signal transmitting module and the obstacle and the second path being an area covered by a second signal transmitted between the signal receiving module and the obstacle, wherein the signal transmitting module radiates the first signal outward, and the signal receiving module receives the second signal sent back from the obstacle after the first signal reaches the obstacle; wherein the detection data comprises the second signal; characterized in that the overlapping area reaches a maximum when the distance between the cleaning robot and the obstacle reaches the first distance, the preset changing trend is that a signal intensity of the second signal is increased first and then decreased, and that determining, according to the detection data, whether the distance between the cleaning robot and the obstacle reaches the first distance comprises: extracting the second signal from the detection data, analyzing the second signal detected in a period during which the cleaning robot is moving, and acquiring a changing trend of a signal intensity of the second signal, determining whether the changing trend fits the preset changing trend, and acquiring a distance between the cleaning robot and the obstacle at a current moment if the changing trend is determined to fit the preset changing trend, wherein the distance at the current moment is the first distance. acquiring detection data of an obstacle detector of the cleaning robot, determining, according to the detection data, whether a distance between the cleaning robot and an obstacle reaches a first distance, wherein the first distance is a distance between the cleaning robot and the obstacle at a moment when a changing trend of the detection data fits a preset changing trend, wherein the obstacle detector comprises a signal transmitting module and a signal receiving module, wherein the signal transmitting module and the signal receiving module are arranged according to a preset angle and a preset distance, such that an overlapping area exists between a first path and a second path, the first path being an area covered by a first signal transmitted between the signal transmitting module and the obstacle and the second path being an area covered by a second signal transmitted between the signal receiving module and the obstacle, wherein the signal transmitting module radiates the first signal outward, and the signal receiving module receives the second signal sent back from the obstacle after the first signal reaches the obstacle; wherein the detection data comprises the second signal; characterized in that the overlapping area reaches a maximum when the distance between the cleaning robot and the obstacle reaches the first distance, the preset changing trend is that a signal intensity of the second signal is increased first and then decreased, and that determining, according to the detection data, whether the distance between the cleaning robot and the obstacle reaches the first distance comprises: extracting the second signal from the detection data, analyzing the second signal detected in a period during which the cleaning robot is moving, and acquiring a changing trend of a signal intensity of the second signal, determining whether the changing trend fits the preset changing trend, and acquiring a distance between the cleaning robot and the obstacle at a current moment if the changing trend is determined to fit the preset changing trend, wherein the distance at the current moment is the first distance. extracting the second signal from the detection data, analyzing the second signal detected in a period during which the cleaning robot is moving, and acquiring a changing trend of a signal intensity of the second signal, determining whether the changing trend fits the preset changing trend, and acquiring a distance between the cleaning robot and the obstacle at a current moment if the changing trend is determined to fit the preset changing trend, wherein the distance at the current moment is the first distance.