Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
main_prehensile_pour_le_robot_poppy_et_interface_tangible [2018/08/07 12:52]
mai Ip
main_prehensile_pour_le_robot_poppy_et_interface_tangible [2019/04/25 14:08] (current)
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://​github.com/​ftdargentina/​2018_mrojet13.git ​for report and code and manual+https://​github.com/​ftdargentina/​2018_s4_projet13 ​for report and code and manual. A video can be seen in https://​drive.google.com/​open?​id=13PpBuiXHTXPefMT6zhvFoq4nFsJNQl1_ ​
  
 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 ====+==== 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 /​home/​user/​2018_S4_projet13 the software: On the laptop, install for instance in folder /​home/​user/​2018_S4_projet13 the software:
  git clone https://​github.com/​ftdargentina/​2018_s4_projet13.git  git clone https://​github.com/​ftdargentina/​2018_s4_projet13.git
  
 ===== Use guide ===== ===== Use guide =====
 +
 +Connect the 
 +  * reacTIVision'​s videoprojector hdmi to the laptop ​
 +  * reacTIVision'​s camera usb to the laptop
 +  * 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'​s) on Poppy'​s right hand side (close to the notch).
 +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 102: 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 /​home/​user/​Documents/​ 
  cd /​home/​user/​Documents/​2018_s4_projet13/​game_code/​  cd /​home/​user/​Documents/​2018_s4_projet13/​game_code/​
  sudo python board.py  sudo python board.py
Line 116: Line 126:
  Password: poppy  Password: poppy
  
-Currently the ip of the RaspberryPi is 10.42.0.1. 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 /​var/​lib/​misc/​dnsmasq.leases). 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).
  
-Clone the repository ​and execute the file gestion.py to command the robot +If not installed, clone the repository ​(git clone https://​github.com/​ftdargentina/​2018_s4_projet13.git) and execute the file gestion.py to command the robot
- cd /home/pi +
- git clone https://​github.com/​ftdargentina/​2018_s4_projet13.git+
  cd /​home/​pi/​2018_s4_projet13/​game_code/​  cd /​home/​pi/​2018_s4_projet13/​game_code/​
  sudo python gestion.py  sudo python gestion.py
Line 153: 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 ​wins or there is a Tie.+After the robot plays, and takes its time to return to the initial position, you can play again, until someone ​wins or there is a tie.
  
 After Poppy'​s Dab (When you win) or Poppy'​s handshake (in a Tie or Lose), you can reset the game and play again After Poppy'​s Dab (When you win) or Poppy'​s handshake (in a Tie or Lose), you can reset the game and play again
 +
 +==== Issues ====
 +In board.py, check the sftp functions: check that the path to "​data"​ file is the right path of the folder in raspberry pi.
 +
 +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 172: Line 185:
 ===== Documents ===== ===== Documents =====
  
- +  * Video https://​drive.google.com/​open?​id=13PpBuiXHTXPefMT6zhvFoq4nFsJNQl1_ 
-{{:​report:​s4_projet_13_2018_triptyque_preprint.pdf|}} +  ​* ​{{:​report:​s4_projet_13_2018_triptyque_preprint.pdf|}} 
-{{:​report:​s4_projet_13_2018_poster_preprint.pdf|}}+  ​* ​{{:​report:​s4_projet_13_2018_poster_preprint.pdf|}}
  • main_prehensile_pour_le_robot_poppy_et_interface_tangible.1533646326.txt.gz
  • Last modified: 2019/04/25 14:08
  • (external edit)