Skip to main content
← Back to Robotics & Embodied AI
Middle Capstone2–4 hours

Program a Robot Routine

Design a sense–plan–act routine that completes a real task.

Your mission

Write a complete robot routine — choosing sensors, planning movement, and handling obstacles — for a specific job.

What you'll need

  • Paper or a block-coding tool
  • A clear task and a map of the space
  • The Robot Senses and Path Planner labs for reference

Your step-by-step plan

  1. Define the mission

    Pick a task — deliver an object, patrol a room, find something.

  2. Pick the sensors

    Choose which sensors the robot needs, and why — like the Robot Senses lab.

  3. Plan the path

    Map a route from start to goal that avoids every obstacle.

  4. Write the routine

    Write the full sense–plan–act steps, including what to do if the path is blocked.

Make it yours

  • Add a recharge step for when the battery is low.
  • Plan a backup route for a blocked path.

How you'll know you succeeded

  • The right sensors are chosen for the task.
  • A collision-free path is planned.
  • The routine handles being blocked.