Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| poppy-copycat:copycat [2019/09/06 15:12] – [Overview] l18guilb | poppy-copycat:copycat [2020/04/23 21:18] (current) – poppy-wrist mai | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{tag> | ||
| + | {{tag> | ||
| ====== Copycat ====== | ====== Copycat ====== | ||
| - | This class had been created to answer of express needs during the CoDev n°65 project, in 2019. Copycat allows the Poppy Robot [] to reproduce arm movements of the wearer of 3 accelerometers on his arm. | + | This class had been created to answer of express needs during the n°65 CoDev project, in 2019. Copycat allows the [[https:// |
| ===== Overview ===== | ===== Overview ===== | ||
| - | In order to manage Poppy, it is necessary to create a PoppyHumanoid instance | + | 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: | + | * '' |
| - | * wrist_acc: wrist accelerometer, | + | * '' |
| - | * arm_acc: arm accelerometer, | + | * '' |
| - | * 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 | + | The language |
| - | 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 | + | < |
| + | |||
| + | The software | ||
| < | < | ||
| Line 69: | Line 73: | ||
| Give external links and describe them (e.g. Documentation, | Give external links and describe them (e.g. Documentation, | ||
| + | |||
| + | Poppy wrist configuration file and vrep scene : https:// | ||