Exam not passed - Task 2/3 error

My first issue is that I scored a 9/10 on the exam, yet it won’t let me press the square button to complete the course.

My second issue is that task 3 fails as you can see below:

My code:

I think the issue is due to task 2 not running straight, so it ends up rotated more than 90 degrees relative to the start pose. This makes the robot hit the wall and get stuck:

image

This is my code for task 2:

Looks like it hit the wall, that will stop it from rotating properly. Maybe be a bit more conservative with the front distance? Really depends on the update frequency of the simulation

Sorry, maybe I wasn’t clear:

The robot does not drive straight in task 2 - That’s a problem I’ve seen from other people on the forum too. I only use the move_straight command. It does not hit the wall.

Due to the pose from task 2, the robot will drive at an angle not equal to 90 degrees in task 3, causing it to drive toward and into the wall as seen in the screenshot.

Not driving straight is not a problem, is how the robot works. You should take that into account when creating your program and act accordingly.

Robots are not computers. They deal with the real world. And the real world is messy, noisy and unpredictable. That is why we still don’t have a robot in our homes helping us.

Programming robots is way more difficult than programming computer software. This is your first taste

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.