Ask Your Question
0

robot arm plays chess with recognition of chess pieces.

asked 2017-02-15 07:23:29 -0600

Newc3 gravatar image

Instead of building a chess board with sensors would like to have chess pieces which are like checkers with standard chess piece identification printed on top of checker. Any ideas on best coloration of checker/chess pieces with graphic on top and size of pieces? Has anyone used this approach to playing chess with a robot arm and is there code for a robot using openCV to play chess. Each piece could have a different color around the circumference of the checker chess piece. Also is there a small, inexpensive computer that could use a simple open source chess program and fit into a box under the board. I programmed in Basic 37 years ago and know very little about openCV. I hope someone has already made a chess playing robot that uses openCC.

edit retag flag offensive close merge delete

Comments

Wow wait, your question is filled with huge contradictions

  1. I programmed in Basic 37 years ago and know very little about openCV versus a robot using openCV to play chess ... just does not make sense
  2. Has anyone used this approach to playing chess with a robot arm and is there code for a robot using openCV to play chess --> OpenCV is a computer vision library, no support what so ever for robotics. I guess you are looking at the wrong library? How about ROS (Robot Operating System)?
  3. Also is there a small, inexpensive computer that could use a simple open source chess program and fit into a box under the board versus a robot using openCV to play chess --> again what a contradiction ...

So no this aint going to work unless

StevenPuttemans gravatar imageStevenPuttemans ( 2017-02-16 08:36:53 -0600 )edit

you start with

  1. Learning C++ and more recent programming skills. I mean Basic? Thats like the dinosaur age for programming ...
  2. Get yourself aquainted with robotics and a system that actually supports those
  3. Get enough cash, hardware/embedded platforms to direct robotics are expensive
  4. Have a lot of patience, this is a multiple year project at the bare minimum

Good luck!

StevenPuttemans gravatar imageStevenPuttemans ( 2017-02-16 08:38:22 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-08-08 20:53:49 -0600

This is quite possible, but not just only with opencv. I started similar project with sensors, and gave up because of cost factor. I'm trying out the approach of using opencv. At high level, following are the critical steps in my solution.

  1. Use opencv to analyze the frames in the video, so that you can build PGN or FEN string
  2. Pass PGN/FEN to an opensource chess engine like StockFish. Stockfish provides an API
  3. Manipulate the robotic arm moves, based on move suggested by stockfish. I'm using MeArm robot that has DOF as 3.

I'm trying out in Raspberry pi and I'll opensource once I finish it. Nevertheless, there are lot of complexities to work out in detail.

edit flag offensive delete link more
0

answered 2017-02-15 10:46:05 -0600

LBerger gravatar image

First opencv is not compatible with gw-basic. You have to learn C++ or python or java.

Try to clone opencv from github and build it using cmake. Don't forget to build opencv with examples it is easyer to learn opencv.

Chess pieces : you can imagine barcode , aruco markers ....

It is a long way to achieve your project.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-02-15 07:23:29 -0600

Seen: 1,346 times

Last updated: Feb 15 '17