Robotic Competitions: Teaching Robotics and Real-Time Programming with LEGO Mindstorms