Webots + OpenCV: Autonomous Multi-Colour Pick-and-Place Robot (Python Demo)

Опубликовано: 17 Май 2026
на канале: Kiran Gunathilaka
131
4

Suggested YouTube Title
“Webots + OpenCV: Autonomous Multi-Colour Pick-and-Place Robot (Python Demo)”

Video Description (copy-paste ready)

Watch an autonomous mobile robot tackle a four-colour pick-and-place challenge inside Webots—all in real time and written entirely in Python.

What you’ll see
Colour-aware perception

OpenCV HSV masking tracks blue → red → green → yellow objects and their matching goals.

Dynamic overlays show bounding boxes, centrelines and live metrics (area, aspect ratio, phase).

Closed-loop control

Gyro-based heading control (90 °/180 ° turns & rotation tracking).

Adaptive proportional steering keeps each object centred while modulating speed as it gets closer.

Task pipeline

Initial navigation ➜ box acquisition ➜ goal approach ➜ retreat ➜ automatic phase switch.

Separate state machine handles each colour phase; logs print progress in the console.

Clean architecture

Runs on Webots’ Python API (Robot, Camera, Motor, Gyro).

Single class (MultiColorRobotController) encapsulates perception, decision-making and actuation.

Code
🔗 GitHub: https://github.com/KiranGunathilaka/B... (includes full script and HSV-tuning notes)