Basic maths for Robotics


I’m in this step of " scape of a maze" of Basic Maths for Robotics:

**The robot needs the function turn() from Unit2 to rotate

In the case that the robot decides to go left, it has to rotate 180 degrees. Take the function turn(target_angle) from Unit2, Exercise 2.2 and paste it into the TurtlebotProject class, in file.

I don’t know how to find this information to paste at “the file” ( Unit 2, exercise 2.2 )


Hello @xavier_ros ,

In Unit 2, Exercise 2.2, you can find a Python script named which contains this function:

You need to copy this function and paste to the code of your project,