poppy-copycat:copycat

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
poppy-copycat:copycat [2019/09/06 15:14] – [Copycat] l18guilbpoppy-copycat:copycat [2020/04/23 21:18] (current) – poppy-wrist mai
Line 1: Line 1:
 +{{tag>Robot}}
 +{{tag>Poppy}}
 ====== Copycat ====== ====== Copycat ======
  
Line 5: Line 7:
 ===== Overview ===== ===== Overview =====
  
-In order to manage Poppy, it is necessary to create a PoppyHumanoid instance []. That is here that Copycat class takes action: it stands in for PoppyHumanoid class by inheritance [not again, in construction] and complete this by adding some methods allowing:+In order to manage Poppy, it is necessary to create a PoppyHumanoid instance. That is here that Copycat class takes action: it stands in for PoppyHumanoid class by inheritance [not again, in construction] and complete this by adding some methods allowing:
  
   * to initialize communication with Raspberry Pi which communicate with accelerometers,   * to initialize communication with Raspberry Pi which communicate with accelerometers,
Line 14: Line 16:
 An instance of Copycat class gets these attributes: An instance of Copycat class gets these attributes:
  
-  * forearm_acc: forearm accelerometer, instance of Sensor class +  * ''forearm_acc'': forearm accelerometer, instance of Sensor class 
-  * wrist_acc: wrist accelerometer, instance of Sensor class +  * ''wrist_acc'': wrist accelerometer, instance of Sensor class 
-  * arm_acc: arm accelerometer, instance of Sensor class +  * ''arm_acc'': arm accelerometer, instance of Sensor class 
-  * mysocket: socket TCP+  * ''mysocket'': socket TCP
  
 The Sensor class is an object with only one attribute, a float, taking the angle value of the  The Sensor class is an object with only one attribute, a float, taking the angle value of the 
Line 25: Line 27:
 ===== Requirements ===== ===== Requirements =====
  
-The language use is Python2.7, decreed by the download image for Poppy on the Raspberry Pi. It is necessary to use this [[https://www.humarobotics.com/downloads/poppy/poppy-humanoid-RPi3-keraal_2017-09-26.img.zip|image]] because it contains all required packages and works for a Poppy equipped with wrists. After that, it is necessary to put the files ''copycat.py'' and ''sensor.py'' in the same repertory than ''poppy_humanoid.py''.+The language used is Python2.7, decreed by the download image for Poppy on the Raspberry Pi. It is necessary to use this [[https://www.humarobotics.com/downloads/poppy/poppy-humanoid-RPi3-keraal_2017-09-26.img.zip|image]] because it contains all required packages and works for a Poppy equipped with wrists. After that, it is necessary to put the files ''copycat.py'' and ''sensor.py'' in **the same repertory** than ''poppy_humanoid.py''. The location of the repertory for the project was 
  
-The software WinSCP allows copying files easily on the Raspberry Pi thanks to SSH. Be careful, you need to change rights on the repertory where is located poppy_humanoid.py. You just have to launch this command+<code>/usr/local/lib/python2.7/dist-packages/poppy-humanoid/</code> 
 + 
 +The software [[https://winscp.net/eng/index.php|WinSCP]] allows copying files easily on the Raspberry Pi thanks to SSH. Be careful, you need to change rights on the repertory where is located ''poppy_humanoid.py''. You just have to launch this command on the Raspberry Pi
  
 <code>sudo chmod –R 777 the/path/repertory</code> <code>sudo chmod –R 777 the/path/repertory</code>
Line 69: Line 73:
  
 Give external links and describe them (e.g. Documentation, Source code, etc.) Give external links and describe them (e.g. Documentation, Source code, etc.)
 +
 +Poppy wrist configuration file and vrep scene : https://github.com/hkerma/poppy-wrist
  • poppy-copycat/copycat.1567782856.txt.gz
  • Last modified: 2019/09/06 15:14
  • by l18guilb