Skip to content

LiamGallagher737/football_robot

Repository files navigation

Football Robot

Our entry to the Robocup Junior football competition.

Summary

The purpose of this project is to have two robots play a game of football against another team of two robots. One of our robots will act as a goalie while the other one will focus on attacking.

Prerequisites

AVR

You must have avrdude and avr-gcc along with some other packages depending on your platform. You can find platform specific instructions in the avr-hal README.

Ravedude

Next you can install ravedude with:

cargo +stable install ravedude

Nightly Rust

This project requires nightly Rust and to avoid weird bugs from mismatching versions this project contains a rust-toolchain.toml file to force the use of a specific nightly version.

Flashing and running the code

After conencting the Arduino to your computer you can run the following commands to flash the code to the Arduino and start reading the serial port.

cargo run -p goalie # or attack

Project Layout

Each robot, goalie and attack, have their own Rust crate for their game logic. Anything not related to game logic like reading sensors and controlling motors goes in the shared lib crate that both robot crates depend on.

There are also other crates under the tools directory that you may find useful. They can be run the same way as the goalie or attack crates, just use the name of the tool instead.

About

Robocup Junior football competition entry

Resources

Stars

Watchers

Forks