Physical Setup - miloboyd/chess-robot GitHub Wiki
The following physical components are used to assemble the play area and enable consistent chesspiece detection and movement:
- 4x 3D printed chessboard quadrants (total area: 30 cm × 30 cm)
- 1x alignment board (frame for quadrant placement)
- 16x custom white chess pieces
- 16x custom black chess pieces
- 1x tripod-mounted RGBD camera (Intel RealSense)
- 1x UR3e robot arm with RG2 gripper
- 1x Linux Computer
Follow these steps to assemble the board in a consistent and accurate layout:
-
Place the alignment board on the UR3e bench surface.
Corners must align with the bench edges to maintain coordinate origin consistency.


- Ensure all quadrant locating holes are cleared of any objects.

-
Insert all 4 quadrants into the alignment board.
Use the markings on the back to ensure correct quadrant order and orientation.


-
Place white pieces on their starting squares.
Ensure the white queen is placed on a white square. -
Place black pieces on the opposing side.
Ensure the black queen is placed on a black square.

- Confirm that each piece sits fully inside the printed indents.
This ensures consistent vision detection and reliable gripping.
- Mount the RealSense camera on a tripod.
- Position the camera to face from behind the white player’s side, slightly off-centre to align with the lens placement.
- Ensure it is:
- Centered over the full 30 cm × 30 cm chessboard
- At a height of 40–50 cm
- As perpendicular as possible for minimal distortion
-
Power on the UR3e at the power point and plug in the ethernet cable to the host computer.
-
Press the power button on the teach pendant and wait for the initialisation screen to appear (press the red button in the left corner if it doesn't). Then press the green 'ON' button.
-
Wait for the 'Robot Active' step to become yellow. Then press the green 'START' button.
-
Wait for the robot to start itself. Ensure that the 'Gripper' payload is selected. When all steps are green as in the image, press 'Exit' in the bottom left.
-
Click 'Run' in the top left, then the blue 'Load Program' button.
-
Click the 'ur_ros_driver.urp' file, and press 'Open' in the bottom right. Then press exit (if it doesn't automatically close).
-
Back on the home screen, press 'Local' in the top right, then from the drop-down list press 'Settings'.
-
Record the IP address to use as the robot IP when connecting.
-
Press 'Installation' in the top left. Press 'General', then press 'Tool I/O'. Match the settings to the screenshot:
-
Press 'URCaps', then press 'OnRobot Setup'. Make sure 'No connection' is selected.
-
If the robot is not homed, press 'Move' in the top left, then press 'Home' below the UR3e graphic.
-
Press and hold 'Move robot to: New position' until the robot has completed its movement. Then press 'Continue'.
Use this list to verify correct setup before each run:
- Alignment board placed and quadrants locked in correct order
- Chess pieces arranged correctly (queens on correct colour)
- Camera mounted, centered, and level
- Entire board visible in camera feed with minimal perspective distortion
- UR3e can reach all squares with clearance