Hi @ghduarte
the possible reason why your script is failing is that what you are doing is:
- You are moving forward only when there are walls on both sides
But what you have to do is:
- Keep moving until there are no walls detected on both sides.
Your current script stops as soon as it passes the robot’s left wall, but the robot at this point has not yet gone through the robot’s right wall. Please check the expected behavior in the image below to understand what I mean here:
