Student Robotics Simulator
During my time at Southampton University, and as part of my volunteer work with Student Robotics, I helped to run three Smallpeice Trust Computing and Microelectronics Summer Schools. I took responsibility for running the programming workshops, for which I wrote a basic simulator to allow the participants to try out their ideas. It is now used for this summer school every year, as well as the main Student Robotics competition.
The simulator provides an API through which the user can control a virtual robot, which is designed to be as similar as possible to the API for the real Student Robotics kit. The user writes their program in Python and can then run it in a simulated arena, which contains the same obstacles, markers, and objectives as the arena in which they will compete. A game with up to four virtual robots can be simulated.
The simulator uses PyGame and the PyPyBox2D physics engine, allowing it to be run using a Portable Python installation without administrator rights on Windows. (ZIP files for Windows, Linux and Mac OS X are available from the Student Robotics website.) The source code is available on GitHub.