What should I do when my robot keeps climbing up and down in the same wall area?

Please check if the angle between two walls is greater than 90°.

If so, sometimes an error may occur, making the robot enter an unending cycle of climbing up, climbing down, locating the wall.

Solution: You need to break the cycle for it by taking it out of water, restarting it and then putting it back to the pool.