Lab 5: Follow me Pupper
CS 123 Team
CS 123
Let’s make Pupper See!
CS 123
Fisheye lens
3
Image Unwarping & Post-processing (implemented for you!)
4
Before Infrared Filter
After Infrared Filter
Lab Overview
We have implemented for you:
Your Job:
5
State Machines
6
Credit: DALL-E
States:
Transitions:
The State Machine in Lab 5 (main part)
7
Breakpoint Tutorial
Common pdb commands: p (print), c (continue), s (step), n (next line)
ctrl + d (or exit) to quit
Reference: https://kapeli.com/cheat_sheets/Python_Debugger.docset/Contents/Resources/Documents/index
8
Stepping through ROS Messages
msg
detections
data
[i]
detection
bbox
Pose2D
center
x
indicates a field of the left side object
9
When you have two (or more) People in the Box…
How do you make sure you’re tracking the same person?
10
Small Motion Assumption in Optical Flow
Solution: You keep the last tracking position, and return the detection closest to that
11
But… Can we do Better? (optional)
12
In practice… After 3+ hours of debugging by Wenhao, Jie, and me, it worked like a charm at Jie’s house—only to fail spectacularly during our demo for Stuart at his house. 🫠
Poor Man’s Obstacle Avoidance (optional)
13
Safety Tips
Please ask the TAs if you have any questions, and come to OH if you need help/more time
Thank you, and have fun! ;)
14
Final Project Logistics
15