Skip to content

Python library for controlling dynamixel motors. Documentation available here:

License

Notifications You must be signed in to change notification settings

buschbapti/pypot

 
 

Repository files navigation

Pypot: A Python lib for Dynamixel motors control

Pypot is a library developed in the inria FLOWERS team to make it easy and fast to control custom robots based on dynamixel motors. This framework provides different levels of abstraction corresponding to different types of use. More precisely, you can use pypot to:

  • directly control robotis motors (both protocol v1 and v2 are supported) through a USB2serial device,
  • define the structure of your particular robot and control it through high-level commands,
  • define primitives and easily combine them to create complex behavior.

Pypot has been entirely written in Python to allow for fast development, easy deployment and quick scripting by non-necessary expert developers. It can also benefits from the scientific and machine learning libraries existing in Python. The serial communication is handled through the standard library and thus allows for rather high performance (10ms sensorimotor loop). It is crossed-platform and has been tested on Linux, Windows and Mac OS.

Pypot is also compatible with the V-REP simulator. This allows you to seamlessly switch from a real robot to its simulated equivalent without having to modify your code.

Finally, it has been developed to permit an easy and fast extension to other types of motors and sensors.

The Poppy-project: open source

Pypot is part of the Poppy project aiming at developping robotic creations that are easy to build, customise, deploy, and share. It promotes open-source by sharing hardware, software, and web tools.

At the moment we already proposed a few Poppy Creatures:

  • the Poppy Humanoid: a kid-size humanoid robot designed for biped locomotion and physical human-robot interaction,
  • a Poppy Ergo: an art/science project where robotic creatures, endowed with algorithmic models of curiosity-driven learning and language formation, were hacked by moviemaker David Lynch,
  • and a PoppyErgoJr with low-cost XL-320 robotis motors and modular 3D printed parts created using OpenSCAD.

Poppy Humanoid

All those creatures are based on a combination of standard dynamixel actuators, 3D printed parts and open-source electronics such as Arduino boards. Both the hardware (3D models, electronics...) and software can be freely used, modified and duplicated.

License Notebooks Library
Name Creatives Commons BY-SA GPL v3
Logo Creative Commons BY-SA GPL V3

Their development is tighly built upon the development of pypot.

Do not hesitate to contact us if you want to get involved!

Documentation

The full pypot documentation on a html format can be found here. It provides tutorials, examples and a complete API.

The documentation is slowly moving toward IPython Notebooks are they are such a powerful tool for writing and sharing tutorials, experiments or pedalogical contents.

They can be found here with a detailed explanation on how they can be used, installed, and modified.

Installation

Pypot is a library entirelly written in Python. It works with Python 2.7, 3.4 and pypy-2.5. It is crossed platform and has been tested on Windows, Mac, Linux - yet specific usb to serial driver may be required depending on your system (see below).

Pypot also requires the following python package:

You can build and install pypot with the typically python way:

cd pypot
python setup.py install

or directly via pip:

pip install pypot

Note: Linux users may have to run the commands above using sudo depending on their python installation

sudo python setup.py install
or
sudo pip install pypot

Note: These commands must be run in a terminal (command prompt) and not directly from within a Python IDE. If you are new to Python and don't know how to install python packages please refer to the official pip documentation or see our tutorial on how you can connect to one of the notebook examples.

If you are new to the Python's world, we strongly recommand using a pre-packaged distribution as Anaconda. It comes will all dependencies pre-compiled (pip, numpy, scipy...) and it works well on Windows, Mac and Linux!

You will also have to install the driver for the USB2serial port. There are two devices that have been tested with pypot that could be used:

  • USB2AX - this device is designed to manage TTL communication only
  • USB2Dynamixel - this device can manage both TTL and RS485 communication.

For more details on the installation procedure, please refer to the installation section of the documentation.

Roadmap

The roadmap of the project can be found here.

Alt text

About

Python library for controlling dynamixel motors. Documentation available here:

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%