Wowwee MiP robot avoids red obstacles using OpenCV (real time computer vision) library on a Raspberry Pi 3 with PiCamera module.
Run this file (on a Raspberry Pi with a PiCamera) at the beginning or when the enviroment changes.
Allow to take the picture of the start environment using the PiCamera.
The main program to be run on the Raspberry Pi.
This program takes a video of the environment and relieves the movements of the Robot (using OpenCV). If the Mip is going to hit a red obstacle,
it warns the Brain (writing on Redis). In this way the Mip Robot can make an intelligent choice in order to avoid the obstacle.
The main loop that simulates the Mip-Brain.
The loop consists of three steps (contained in the init.py file: sense,think and act).
Sense : the Brain reads from Redis in order to know if the Mip is going to hit a red obstacle.
Think : once know the situation, the Brain thinks and make a choice in order to avoid the obstacles.
Act : act the decision and avoid the red obstacle.
Contains the GattTool and Mip classes.
1. GattTool class:
This class provides methods to command the Mip Robot through BLE protocol.
2. Mip class:
This class provides methods of the Mip-Brain.