IN THIS LESSON

Main objective:

Understand how state machines can be used to organise and coordinate different robot behaviours, and implement a simple autonomous driving scenario in which the robot transitions between states in response to sensor inputs and events.

Topics covered:

  • Recap of state machines: states, transitions and conditions

  • Decomposing an autonomous driving task into individual behaviours

  • Designing a state machine for an autonomous road trip

  • Implementing transitions between driving behaviours

  • Handling unexpected events and prioritising safety

  • Testing and debugging state transitions

Outcome:

Implement a state machine that coordinates multiple robot behaviours.