"This is one small step for hamster... one giant leap for hamsterkind"
Code for the Mechatronics 2 assignment (Year 4 IDE) to build a robot contained in a rolling 'hamster ball' (team of 4 students). This repository contains the 'mission control' part of the code, which takes images from an overhead camera and processes them to plan a path for the robot and send commands over WiFi accordingly.
- Python 3.8.3 (64-bit conda environment)
- OpenCV 4.4 with ArUco library
- Arduino Nano 33 IoT running compiled Simulink model
- 720p webcam mounted overhead (2.25m above the floor), looking straight down
- 2.4GHz WiFi communications via UDP
See the run configurations guide.
If Anaconda makes an absolute mess of the install like mine did, the following might help fix it:
https://medium.com/@udiyosovzon/how-to-activate-conda-environment-in-vs-code-ce599497f20d
To make pylint recognise opencv subpackages, add the following to settings.json
in VSCode:
"python.linting.pylintArgs": [ "--generate-members" ]
Common importing problems: http://python-notes.curiousefficiency.org/en/latest/python_concepts/import_traps.html