Project Joseph Hoane
Problem
Ever since Joseph Hoane and the team behind Deep Blue defeated reigning chess champion Garry Kasparov in 1997, AIs have become exceptionally good at winning chess. However, these chess playing "robots" are limited to making their moves digitally. Allowing a robot to play chess with a physical board adds in the complexity of finding and moving the chess pieces around. Our goal is to create an autonomous system that can play against humans (or even another robot) on a physical chess board.
Solution
Our solution has three main objectives: Identify, Decide, Excecute.
- Identify - Determine the current location of every piece on the board
- Decide - Decide the optimal next move to play
- Excecute - Control the robot arm to move the target piece
Objective 2 has already been solved by modern day chess engines, so our solution focuses on objectives 1 and 3. For identifying the board state, our solution involves a variey of computer vision techniques. Machine learning alows us to find and identify chess pieces. Then, a top-down perspective warp allows us to map pieces to the proper board location. When it comes to excecuting the robot's move, forward and inverse kinematics allow us to instruct the robot to carry out the move.



Tech Stack
| Component | Description |
|---|---|
| UR10e | Universal Robotics arm, used for moving pieces |
| 2f85 | The gripper used for grabbing the pieces |
| ROS | Robot Operating System, provides an interface to collect data from and control the robot |
| RabbitMQ | Queue to decouple image processing pipeline from the rest of the architecture |
| Ubuntu 20.04 | OS of contolling laptop, required for commanding the robot with ROS Noetic |
| Docker | A containerization platform for isolating components and provisioning services |
| Stockfish | Chess engine used for determining the robot's next move |
| PostgreSQL | Database to persist some data such as moves and game metadata |
| Minio | Similar to an AWS S3 bucket except ran locally to ease the sharing of media between services |
| Golang | A simple, compiled, highly concurrent programming language used to implement the core worker/orchestrator service for this project |
| Python/FastAPI | Python framework to create HTTP API endpoints |
| Node.js | Javascript runtime, used to run the chess corner detection model with Tensorflow JS |
| Vue.js | A frontend framework for creating a GUI to interact with the rest of the software |
| Ultralytics/YOLO | Used to train models and run models on input media |
| OpenCV | A library for tasks related to computer vision |
| gRPC | A modern RPC framework for remote calls between different services |
| HTTP | A protocol for communication between different services |
| MuJoCo | A simulator that runs a model of the same robot we used in real life |
