Monday, 1 August 2011

API Control Panel

The Graphic Interface of the API uses the basic platform GUI, and also includes the Croquet Application pannel. On the bottom, some elements have been added :


First, a tabbed pane enables you to switch from platform view to the last snapshot saved. It can be useful to make sure image processing worked well.

Some buttons have been added to control the API :

Place Hoops & Peg :
Take a picture and position hoops/peg founded. You can press it at any time, but make sure the robot and balls are properly removed from the board, or it won't work.
Place Robot & Balls :
Available once you position hoops. Place initial position of robot and balls

AI Button Play :
Available only if the current player is not manual. Make the AI play. ( It could be done automatically like on the platform, but for a demonstration software I think it's better to be able to control everything yourself).


For the moment, hoops crossing detection, roquet, succession of turns,... is entirely based on what happens on the platform. For exemple, you may cross a hoop on the platform, whereas the real robot missed it. So, the software will suppose you've reached a hoop and earn an extra strike, even if it's wrong.
The corrective panel is here to correct mistakes made by the software.

Skip a Turn :
Skip current player's turn. Notice that each time you start a new turn, robot and balls positions are automatically recalculated with the camera.
Replace Robot & Balls :
If the difference between reality and platform is too big, you may want to replace robot and ball
( Warning : the button "Place Robot and Balls" do the same thing, but it automatically skips the current turn ).
Next Hoop Corrections :
Two fields to correct hoop crossing errors. Press "enter" after writting the value. The Peg is identified as hoop number 7.

No comments:

Post a Comment