1. Open main.py. This file contains an example implementation of the image processor and motion classes. For this task in case of questions, ask an instructor.

  2. There should be a main loop that processes every camera frame and outputs a ProcessedResults object that contains information about objects detected in the frame.

  3. Use the return data to find if there are any balls in the frame.

  4. If there are balls in the frame, find the largest balls Object.

  5. Find the X and Y coordinates of the ball. Take into consideration that the zero coordinates of the frame are in the upper left corner.

  6. Using these coordinates calculate the side speed, forward speed and rotation for the robot. Use TurtleRobot and its move method to visualize the robots motion. Its motion can be seen in the "Default turtle robot" window. Write code so that the robot centers the ball horizontally. Vertically the ball must be on the bottom third of the frame.

  7. Use the TurtleRobot class to visualise the robots motion vector.

  8. Play around with your speed calculation methods to provide a smooth trajectory for the robot. Don’t only use constant speeds since it leads to jerky motion. Instead, try to use proportional movement where the delta of the desired ball location to the current ball location determines the robot’s speed.

  9. Demo your solution to the instructors. Iterate on the solution in case deficiencies are brought up by instructors.

  10. If everything works, continue to the next task.