Skip to content

Finin-Quincey/Mechatronics-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🪐 Mechatronics II: Working Rovertime

"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.

🛰 Specs

  • 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

🚀 Run configurations

See the run configurations guide.

🐍 Troubleshooting

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

🔭 Useful links