Skip to content

FH-EngineeringClub/UR10_Workspace

Repository files navigation

UR10 Chess Robot

Project by the Foothill Engineering club to play chess against a Universal Robots UR10.

src hosts the currently working files used to run the UR10.

See our project Notion site for more information.

Photo of the UR10 chess robot

Requirements

MacOS specific

Instructions

  • Preview chess.svg in VS code

  • Confirm the robot IP listed in src/main.py

  • Run main.py and input your move in SAN format (e.g. b2b4 or e2e4)

Setup

Stockfish

ur_rtde (MacOS or Linux recommended)

MacOS

brew install stockfish

brew install cmake
brew install boost
Install tkinter:
brew install tcl-tk
echo 'export PATH="/usr/local/opt/tcl-tk/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
echo $PATH | grep --color=auto tcl-tk
export LDFLAGS="-L/usr/local/opt/tcl-tk/lib"
export CPPFLAGS="-I/usr/local/opt/tcl-tk/include"
export PKG_CONFIG_PATH="/usr/local/opt/tcl-tk/lib/pkgconfig"
python -m tkinter -c "tkinter._test()"

If pip install -r requirements.txt does not correctly install ur_rtde, run pip install ur-rtde --use-pep517

Linux (Ubuntu 22.04 recommended)

sudo apt-get install stockfish sudo apt-get install libboost-all-dev
sudo apt install cmake
sudo add-apt-repository ppa:sdurobotics/ur-rtde
apt-get install python3-tk
sudo apt-get install libusb-1.0-0-dev libudev-dev
sudo apt-get update
sudo apt install librtde librtde-dev
If pip install -r requirements.txt does not correctly install ur_rtde, run pip install ur-rtde --use-pep517

Windows

Run the install.bat file to install the required dependencies.

pip install -r requirements.txt

Resources

UR Real-Time Communication Guide

ur_rtde Documentation

Python Stockfish

python-chess documentation

Stockfish and python-chess tutorial

Chess elo levels

Azure Kinect DK Hardware

OpenCV troubleshooting

hidapi documentation

hidapi repository

About

Python controller for a UR10 robot to play chess

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published