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 21:22] l18guilb [Requirements] |
poppy-copycat:copycat [2020/04/23 21:18] (current) mai poppy-wrist |
||
---|---|---|---|
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 25: | Line 27: | ||
===== Requirements ===== | ===== Requirements ===== | ||
- | 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 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 on the Raspberry Pi | + | <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 |