RoBorregos / robocup-soccer-open-2024

RoboCup Soccer Open
2 stars 0 forks source link

Robocup Soccer Open 2024

Code for Robocup Soccer Open 2024 participating with Roborregos

Authors

Features

๐Ÿ“ 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:

Structure

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

Tools

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

Documentation

Poster for competition

Install dependencies

Make sure to install the corresponding boards in your Arduino environment following the instructions.

  1. Open Preferences using the menu bar:
    • Windows/Linux: File > Preferences
    • macOS: Arduino IDE > Preferences
  2. Find the Additional boards manager URLs setting toward the bottom.
  3. Click the button to the right of the text field to open the Additional Boards Manager URLs window.
  4. Paste or remove URLs in the window. There should be one URL for each line.
  5. Click OK to close the Additional Boards Manager URLs window.

Board packages can be found here:

To install python dependencies paste the following command in your cmd environment

pip install -r requirements.txt

Optimizations

optimizations

License

MIT