Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| main_prehensile_pour_le_robot_poppy_et_interface_tangible [2018/08/02 09:17] – poster et triptyque et manuel mai | main_prehensile_pour_le_robot_poppy_et_interface_tangible [2018/08/07 18:32] (current) – mai | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| Projet S4 2018: jeu de morpion avec la table iteractive reactable et le robot Poppy | Projet S4 2018: jeu de morpion avec la table iteractive reactable et le robot Poppy | ||
| - | https:// | + | https:// |
| The software is installed on the laptop of the laboratory. | The software is installed on the laptop of the laboratory. | ||
| Line 67: | Line 67: | ||
| Once everything is installed, there are some example codes in the repository | Once everything is installed, there are some example codes in the repository | ||
| + | ==== Install the game software on the laptop ==== | ||
| + | If you are using the laptop from the laboratory, all the packages should be installed, if not install them with pip. | ||
| + | On the laptop, install for instance in folder / | ||
| + | git clone https:// | ||
| ===== Use guide ===== | ===== Use guide ===== | ||
| + | |||
| + | Connect the | ||
| + | * reacTIVision' | ||
| + | * reacTIVision' | ||
| + | * connect raspberry pi ethernet to the laptop | ||
| + | * connect the electromagnet J1 port to the grovepi D4 port | ||
| + | * connect poppy usb2ax to the raspberry pi usb | ||
| + | * power on poppy motors | ||
| + | |||
| + | Put the pile of wooden fiducials with metallic parts (Poppy' | ||
| + | The wooden fiducials without metallic parts are for the human player. | ||
| ==== Execute reacTIVision and configure it. ==== | ==== Execute reacTIVision and configure it. ==== | ||
| - | If you are using the laptop from the laboratory, all the packages should be installed, if not install them with pip. | ||
| You have to connect the USB camera and the projector to the laptop, if the laptop does not recognize the projector, try restarting the laptop with the projector connected. | You have to connect the USB camera and the projector to the laptop, if the laptop does not recognize the projector, try restarting the laptop with the projector connected. | ||
| Line 82: | Line 96: | ||
| Press h to show the help of the reacTIVision application and configure it with these values: | Press h to show the help of the reacTIVision application and configure it with these values: | ||
| - | finger sensitivity = 0 | ||
| - | finger size = 0 | ||
| - | finger blobs = 0 | ||
| - | blob size = 66 | ||
| - | gradient gate = 8-15 | ||
| - | tile size = 2-4 | ||
| - | shutter = 62 | ||
| - | This values depend on the amount of light that strikes the board, try changing them until the reacTIVision application detects the ID of the pieces. | + | | desired value | function in the application | |
| + | |finger sensitivity = 0| f - adjust size & sensitivity | | ||
| + | |finger size = 0| f - adjust size & sensitivity | | ||
| + | |finger blobs = 0| b - adjust blob size & activation | | ||
| + | |blob size = 66| b - adjust blob size & activation | | ||
| + | |gradient gate = 8-15| g - set gradient gate & tile size | | ||
| + | |tile size = 2-4| g - set gradient gate & tile size | | ||
| + | |shutter = 62| o - camera options | | ||
| + | |||
| + | These values depend on the amount of light that strikes the board, try changing them until the reacTIVision application detects the ID of the pieces. | ||
| ==== Execute the code to show the board ==== | ==== Execute the code to show the board ==== | ||
| Line 97: | Line 113: | ||
| Use the following commands to get our repository and execute the code in the laptop | Use the following commands to get our repository and execute the code in the laptop | ||
| - | cd / | ||
| - | git clone https:// | ||
| cd / | cd / | ||
| sudo python board.py | sudo python board.py | ||
| Line 112: | Line 126: | ||
| Password: poppy | Password: poppy | ||
| - | Make sure that the raspberry is connected to the internet with an ethernet cable (it should have internet from the laptop if the laptop as the WiFi enabled). | + | Currently the ip of the RaspberryPi is 10.42.0.246( you can also get its ip with the command from the laptop cat / |
| - | Clone the repository | + | If not installed, clone the repository |
| - | cd /home/pi | + | |
| - | git clone https:// | + | |
| cd / | cd / | ||
| sudo python gestion.py | sudo python gestion.py | ||
| Line 122: | Line 134: | ||
| Troubleshooting: | Troubleshooting: | ||
| - | Maybe you will need to use sudo to clone the repository, if that's the case, the board.py code will not be able to write the " | + | Maybe you will need to use sudo to clone the repository, if that's the case, the board.py code will not be able to write the " |
| - | in every turn, this is indicated by an Access Denied error in the reactable code when you put a piece in the board. If that's the case, you can try: | + | in every turn, this is indicated by an Access Denied error in the reactable code when you put a piece in the board. If that's the case, you can try: |
| - | cd / | + | cd / |
| - | ls -l | + | ls -l |
| - | This will show if the file is only modifiable by root user, in that case you can remove it | + | This will show if the file is only modifiable by root user, in that case you can remove it |
| - | cd / | + | cd / |
| - | sudo rm data | + | sudo rm data |
| - | Make sure that you put a piece in the board to generate a new file, before running the code gestion.py that needs the file. | + | Make sure that you put a piece in the board to generate a new file, before running the code gestion.py that needs the file. |
| If everything works you should see an " | If everything works you should see an " | ||
| Line 149: | Line 161: | ||
| If you selected J2, lift the pion so you stop reseting the robot, and he will begin to play. | If you selected J2, lift the pion so you stop reseting the robot, and he will begin to play. | ||
| - | After the robot plays, and takes its time to return to the initial position, you can play again, until someones | + | After the robot plays, and takes its time to return to the initial position, you can play again, until someone |
| After Poppy' | After Poppy' | ||
| + | |||
| + | ==== Issues ==== | ||
| + | In board.py, check the sftp functions: check that the path to " | ||
| + | |||
| + | There seems to be issues when you want to relaunch the game as player 1 or 2. It can not relaunch well. The behaviour of Poppy at launch is stochastic, I am not sure if it starts or not. | ||
| ==== Questions ==== | ==== Questions ==== | ||
| Line 168: | Line 185: | ||
| ===== Documents ===== | ===== Documents ===== | ||
| - | + | * Video https:// | |
| - | {{: | + | |
| - | {{: | + | |