Git Product home page Git Product logo

pbdlib-py3's Introduction

Python 3

This is a copy of pbdlib-python, naively translated into Python 3 code using the 2to3 util. All credit belongs to the original authors. All errors due to translation are mine. Feel free to open pull requests to help fix remaining errors, eg. in the notebooks.

Hereafter follows the original readme at the time of translation.

==============================================================================

Papers-related pages

If you came there reading one of the following works, please directly go to the related page.

pbdlib

Pbdlib is a python library for robot programming by demonstration. The goal is to provide users with an easy to use library of algorithms that can be used to learn movement primitives using probabilistic tools.

This Python version of Pbdlib is maintained by Emmanuel Pignat at the Idiap Research Institute. Pbdlib is a collection of codes available in different languages and developed as a joint effort between the Idiap Research Institute and the Italian Institute of Technology (IIT).

For more information see http://www.idiap.ch/software/pbdlib/.

References

If you find these codes useful for your research, please acknowledge the authors by citing:

Pignat, E. and Calinon, S. (2017). Learning adaptive dressing assistance from human demonstration. Robotics and Autonomous Systems 93, 61-75.

Installation

This requires v2.7 of Python.

Following these instructions install the library without copying the files, allowing to edit the sources files without reinstalling.

cd pbdlib-python
pip install -e .

If pip is not install, you can get it that way:

sudo apt-get install python-pip

Launching the notebooks tutorial

Launch jupyter server with:

jupyter notebook notebooks/

Then navigate through folders and click on desired notebook.

Filename Description
pbdlib - basics.ipynb Overview of the main functionalities of pbdlib.
pbdlib - lqr.ipynb Linear quadratic regulator to regerate trajectories.
pbdlib - Multiple coordinate systems.ipynb This example shows how motions can adapt to various positions and orientations of objects by projecting the demonstrations in several coordinate systems.

MEMMO related examples

Launch jupyter server with:

jupyter notebook notebooks/MEMMO/

User interface for recording data with the mouse

Installation

sudo apt-get intall python-tk

Use

cd notebooks
python record_demo.py -p /path/to/folder -f filename

You can click on move the mouse on the left panel to record demonstrations. Press "h" for help. Save with "q".

To record demos with additional moving objects, run

python record_demo.py -p /path/to/folder -f filename -m -c number_of_object

By pressing, the number corresponding to the desired object on your keyboard, you will make it appear and be able to move it. Rotate them by holding the key of the number and turning the scrollwheel of your mouse.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.