Chasing Robots using a webcam

A MATLAB Program that uses a webcam to watch three different robots.

You are now following this Submission

A MATLAB Program that uses a webcam to watch three different robots. It gets their positions online so it is possible to draw their paths and their inter-agent distances.

The robots have three different color labels. This program uses the RGB properties to detect the labels to find them. I used the code: Color Threshold written by Mr. Aaron to find the RGB properties of the labels offline. Drawings are done offline.

NOTE: the program works under MATLAB 7.6.0(2008.a) and NOT GUARANTEED to work under other versions without some changes.

Cite As

Abdel-Razzak (2026). Chasing Robots using a webcam (https://www.mathworks.com/matlabcentral/fileexchange/27617-chasing-robots-using-a-webcam), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Robotics System Toolbox in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

a command to save the screen shots as avi video is added

1.0.0.0