Skip to main content

Robot reporter: the final project

Time: 10:50 AM to 11:40 AM
This project ties together everything from the entire week into a single script. The robot drives to a series of positions, captures a photo at each stop, sends the image to GPT-4o-mini vision, and speaks a description of what it sees.

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:
Available movement actions: "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:
No keyboard input needed after launch — the robot runs the entire tour autonomously.

Run it

Press Enter to start the tour. Press Ctrl-C at any time to stop.
Test the stop control (Ctrl-C) before running the full tour. Make sure the robot has clear space to move through all its stops.
Expected output:

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.