6 The RoboLab Grand Prix Challenge

6 The RoboLab Grand Prix Challenge

The aim of this challenge is to create a program that makes the simulated robot go round a race track as quickly as possible.

You can complete and submit this activity as part of your ePortfolio.

You can do this either by writing your own program from scratch, or by modifying one of the programs created in a previous activity.

To complete this challenge, you should use the Small_Robot configuration.

The race track itself is modelled on the Thruxton motor racing circuit in Hampshire. It was generated from an SVG representation of the circuit taken from Wikimedia Commons. One of the fastest UK motor racing circuits, the track comprises a closed a loop, with a series of gentle curves and long straight sections.

The track is modelled as a black line on a white background, with a light grey bar across it at one point to represent the start and finish line. Two small red flags identify the (clockwise) direction of travel round the circuit.

If your program uses an interesting control strategy, or completes a lap in what you think might be a fast time, then share it via your Cluster group forum.

Try to limit yourself to 30 minutes at most on this challenge. It’s amazing how quickly the time can go…

So let’s load in the simulator in the normal way, and get ready to start your engines…

from nbev3devsim.load_nbev3devwidget import roboSim, eds

%load_ext nbev3devsim
%load_ext nbtutor

Try not to spend too long on this challenge. Identify one or two possible approaches that you would like to try out that you think might improve the performance of the robot and try them out.

As well as identifying new control strategies, changing parameter values within a control strategy you have already identified may also lead to performance improvements.

Good luck… :-)

Your design notes here.

%%sim_magic_preloaded --background Thruxton_Circuit -r Small_Robot

# YOUR CODE HERE

Your notes and observations on the performance of your robot and the strategies you used to try and improve the lap time of your robot.