As the rotary encoder has two output poles, the rotation direction of the encoder is successively represented by the signal phases of the two output poles, and the number of encoder pulses captured is calculated to reach the actual position of the detection wheeled robot in the pipeline