Autonomous Mobile Robot for Color-Based Object Retrieval

Designed and developed a mobile robot capable of autonomously detecting, navigating to, and retrieving colored cubes in a controlled environment. This project combined computer vision, object localization, and motion control to execute reliable pick-and-place operations based on color recognition.


Highlights:


Technical Workflow:

1. Camera Calibration

Goal: Establish a relationship between image pixels and real-world coordinates.


2. Color and Shape Recognition

  1. Captured frames processed in real time.
  2. Converted color space from BGR to HSV for more effective segmentation.
  3. Applied color masks to isolate target hues (blue, green, magenta).
  4. Calculated centroids using image moments.
  5. Differentiated cubes from patches based on contour area.
  6. Transformed detected centroid coordinates to world space.

3. Object and Robot Localization

Using the derived calibration parameters, both the robot’s and object’s global positions were calculated.


4. Autonomous Navigation

Control Strategy:

Tuning Details:


Real-World Applications:

🔗 View Source Code on GitHub