This is an old revision of the document!
Poppy Software
Poppy uses pypot for control. It is a python library : http://poppy-project.github.io/pypot/index.html On the top of pypot are libraries for Poppy creatures : https://github.com/poppy-project
Software setup
The quick install consists in:
- install pypot :
sudo pip install pypot
- install your popppy creature. For instance for poppy humanoid :
sudo pip install poppy_humanoid
- to check that the libraries are installed correctly, execute with python the code:
from poppy_humanoid import PoppyHumanoid poppy = PoppyHumanoid()
A good guide can be found here: https://github.com/HumaRobotics/poppy-examples/blob/master/doc/softwareGuide/softwareGuide.pdf. More technical details about pypot, you can look at installation of pypot.
If you have trouble detecting your motors, you can follow the step 2 of https://forum.poppy-project.org/t/first-start-of-poppy and run in python
import pypot.dynamixel dxl_io_upper = pypot.dynamixel.DxlIO('PORT_UPPER_BODY') dxl_io_lower = pypot.dynamixel.DxlIO('PORT_LOWER_BODY') print dxl_io_upper.scan(range(60)) print dxl_io_lower.scan(range(60))
First program
- Simple motor command :
from poppy_humanoid import PoppyHumanoid import time import pypot.robot poppy = PoppyHumanoid() # or poppy = pypot.robot.from_config(poppy_config) poppy.head_z.compliant =False poppy.head_z.max_torque=20 poppy.head_z.goal_position=20 poppy.head_z.goto_position(-20,3) time.sleep(5) print "before moving" poppy.head_z.goto_position(40,3, wait=True) print "after moving"
- Make it reset to its standing position :
from poppy_humanoid import PoppyHumanoid import time import pypot.robot poppy = PoppyHumanoid() # or poppy = pypot.robot.from_config(poppy_config) for m in poppy.motors: m.compliant = False for m in poppy.motors: m.goto_position(0, 5) time.sleep(5)
- to record and replay a movement http://poppy-project.github.io/poppy-docs/pypot/doc/quickstart-primitive.html and https://poppy-project.github.io/pypot/move.html.
Other examples can be tested from https://github.com/HumaRobotics/poppy-examples