Lite / Intelligent Robotic Systems / Week 1
Week 1: Modular programming
This week you will
- Split a program into modules with clear interfaces and import them.
- Design functions with single responsibilities and documented contracts.
- Test a module with hand-worked answers and edge cases.
Lessons
- One script is not a system · about 35 min
A rover planner works perfectly as one 600-line file. Then you change a unit conversion and three unrelated features break. Why? - Functions that keep their promises · about 35 min
In 1999 a Mars orbiter was lost because one team's software worked in pound-force seconds and another's expected newton-seconds. What one line of documentation could have helped? - Tests that catch you before the robot does · about 35 min
Your planner returned a path for six weeks. Then someone added a wall at the map edge and it crashed. Which test would have caught it on day one?