Template code for a robot with basic functionality.