Project - Making Petoi Bittle respond to colors
How to program a robot to respond to color changes
Introduction
We have been writing a series of posts which explore the possibilities of the Petoi Camera module which is based on the MU3 Vision Sensor. In a previous post, we saw how the Petoi Bittle robot can be made to track a ball and move its posture as the ball moves. We have also discussed how to view a continuous video stream from the camera module.
Objective
The objective of this post is to program Bittle to respond to a specific color. To recognize a color, we need to program Bittle to identify a color seen by the MU3 Vision Sensor, and then respond to it by performing a gait. By the end of this post, you will learn how Bittle can respond to different colors.
Color Recognition
The details of how the MU3 Vision Sensor detects colors is described in Section 4.3 in the Advanced Technical Manual. Programmatically, one needs to specify the position (X-Y) and size (W-H) of the recognition area. The X-Y coordinates denote the center of the recognition area within the image. The W-H coor…
Keep reading with a 7-day free trial
Subscribe to Learn With A Robot to keep reading this post and get 7 days of free access to the full post archives.