Code for Robocup Soccer Open 2024 participating with Roborregos
๐ File Breakdown:
โฝ Ball Detection: Leveraging a regression model and pixel mapping, we determine real-time ball distance and angle. Advanced image processing techniques like LAB values and multi-blob tracking enhance accuracy.
๐ฅ Goalpost Detection: Utilizing coordinate translation and cosine calculations, we precisely locate goalposts relative to the robot's position using color.
๐ค๏ธ Line Detection: Employing grayscale filtering and pixel counting, our algorithm identifies potential obstacles (lines) and navigates around them.
๐ฎ Robot Control: Integration of 2 PID controllers ensures stable performance:
ROBOCUP-SOCCER-OPEN-2024
โโ Goalkeeper
โ โโ ESP32
โ โโ Pico
โโ Libs
โ โโ Bno
โ โโ Imu
โ โโ Motor
โ โโ Motors
โ โโ Photo
โ โโ PID
โ โโ Serial
โ โโ Transmission
โโ Striker
โ โโ ESP32
โ โโ Pico
โโ Test
โโ Vision
โโ .gitignore
โโ constants.h
โโ requirements.txt
Make sure to install the OpenMV IDE to upload the Vision files to the camera and to add the corresponding Arduino packages/libraries in your folder environment
Make sure to install the corresponding boards in your Arduino environment following the instructions.
Board packages can be found here:
To install python dependencies paste the following command in your cmd environment
pip install -r requirements.txt
optimizations