Robot reporter: the final project
Time: 10:50 AM to 11:40 AM
What this combines
Everything converges here. One script, all five layers.
The tour loop
Building the program
Step 1 — Define the tour stops
The tour is a list of stops. Each stop has a description (for your terminal), a movement action, and movement parameters:"forward", "backward", "turn_left", "turn_right", "pause".
Customize these to match your room layout. Add more stops, change angles, or extend distances.
Step 2 — Define the reporter persona
The system prompt controls how the robot narrates. This is where you get creative:Step 3 — The movement function
A simple function that executes each movement action:Step 4 — The vision function
Capture a frame and ask GPT to describe it using the reporter persona:Step 5 — The tour loop
The main loop drives to each stop, captures, describes, and narrates:Run it
Click to see the complete robot_reporter.py program
Click to see the complete robot_reporter.py program
What you modify
You are changing three things in the program:1. Tour stops and movement
Add more stops, change turn angles, or extend distances. Map out a route through your workspace:2. Reporter persona
Change the system prompt to give the robot a different voice:3. Intro and outro lines
Write an opening and closing line that matches your persona:Wrap-up discussion
This single script uses movement from Days 1-2, text-to-speech from Day 2, the OpenAI API from Day 3, and GPT-4o vision from Day 4. The robot perceives, reasons, and acts — all in one loop.That is the full stack of embodied AI, built by you over five days. The same architecture (perceive → reason → act) is used in self-driving cars, warehouse robots, and drone navigation systems.

