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.
-
Python 3.9 or 3.10 (3.10 recommended)
-
stockfish, python-chess, colorama and ur_rtde
- Installable with
pip install -r requirements.txt
- ur_rtde and stockfish require additional steps for installation, see Setup for details
- Installable with
-
Stockfish executable
-
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)
ur_rtde (MacOS or Linux recommended)
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
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
Run the install.bat
file to install the required dependencies.
pip install -r requirements.txt
UR Real-Time Communication Guide