Who it is forA researcher or hobbyist who wants to see how real camera motion affects the model's motion and looming groups before any robot is connected.
The problemSynthetic frames do not show how real lighting, camera motion or frame rate change the optical-flow signals.
The outcomeTerminal output of motion, looming and motor activity driven by real footage, with dry-run keeping all commands local.
What you need first
- Python 3.11 or newer
- git and a terminal
- A webcam or a video file, optional, for live or recorded input
- A calibrated robot, network link and independent motor power cutoff, only if you plan to use --send
Steps
- Complete the setup from the synthetic demo so the package is installed in an active virtual environment.
- Run the webcam mode with
python -m flybrain_robot.main --backend mock --camera 0 --dry-run. - Or run your own footage with
python -m flybrain_robot.main --backend mock --video /path/to/your/video.mp4 --dry-run. - Watch the looming and motion values and note how they change when the camera or scene moves.
Prompt for your agent
In the flybrain-robot-bridge repo, run python -m flybrain_robot.main --backend mock --video <path-to-video.mp4> --dry-run on the file at <path-to-video.mp4>. Report the motion, looming and motor activity values over the run. Verify that the output shows dry-run and that no UDP packets were sent.
Caveat. The README says looming is a center-relative optical-flow heuristic that is sensitive to camera motion, lighting and frame rate, and webcam hardware is untested.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Frankweb33/flybrain-robot-bridge and "Test motion and looming output from a webcam or video"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer