Lite / Intelligent Robotic Systems / Week 29
Week 29: State machines
This week you will
- Design a finite state machine with guarded transitions for a robot task.
- Check it for unreachable states, traps and unhandled events.
- Test every transition and each guard boundary.
Lessons
- States, events and guards · about 35 min
A delivery robot gets an order with 25 % battery left. Should it go, or charge first? Who decides, and where is that rule written? - No state left behind · about 35 min
A robot hits a wall, enters FAULT, and stays there forever, even after someone clears the path. The code has no bug. The design does. - Test every arrow · about 35 min
Your state machine has 9 transitions. How many tests prove it works? (Hint: not 1, and not 1,000.)