IntPrim is a Python Library for Interaction Primitives developed at the Interactive Robotics Lab at Arizona State University. Interaction Primitives (Ben Amor, 2014) provide a machine learning framework that allows users to learn controllers for human-robot interaction (HRI) from example demonstrations alone. This framework enables imitation learning in HRI settings in which two or more agents are physically interacting with each other. The overall objective is to extract the dynamics of an interaction from a set of example demonstrations, then use the dynamics to infer the future states of both the human and the robot. As a result IntPrim allows for a.) the prediction of future motions of a human partner, b.) the generation of appropriate robot reponses, and c.) the inference of latent (unobserved) variables that may be critical for the interaction.
This library was primarily developed to enable training and inference with Bayesian Interaction Primitives (BIP), however, it also supports Probabilistic Movement Primitives and Particle Filters as a baseline for comparison.
This library has been successfully deployed in real-world HRI scenarios (some of which are shown above) involving cooperative object manipulation, shaking hands, hugging, grasping, and more! A list of peer-reviewed publications that have utilized this library can be found below.
This library was created by Joseph Campbell, Simon Stepputtis, Michael Drolet, and Heni Ben Amor from Arizona State University.
A corresponding ROS package is available at https://github.com/ir-lab/intprim_framework_ros which greatly simplifies the process of setting up and running real experiments with the IntPrim library.
- Train an Interaction Primitives model from demonstrations
- Perform recursive inference with an Interaction Primitives model and generate future states
- Support for inference with Ensemble Bayesian Interaction Primitives, Bayesian Interaction Primitives, Probabilistic Movement Primitives with DTW, and Particle Filter
- Automatic basis space selection with support for Gaussian, Sigmoidal, and Polynomial functions
- Automatic computation of the observation noise
- Optimize interactions with Model Predictive Control scheme
- Comprehensive interactive analysis tools
- Integration with ROS via https://github.com/ir-lab/intprim_framework_ros
A set of tutorials and documentation about IntPrim has been provided in the following Jupyter Notebooks:
- Introduction
- Quickstart
- In-depth Tutorial
- Mathematical Details
- Model Predictive Control with Interaction Primitives
Additionally, the API and associated documentation can be found here:
https://ir-lab.github.io/intprim/
This library has been built and tested on Python 2.7.
The following Python libraries must be installed before IntPrim can be used:
- Numpy
- Scipy
- Matplotlib
- Sklearn
To install this library, download the package and in the root directory run:
python setup.py install --user
Questions or comments may be directed to Joseph Campbell at [email protected], Simon Stepputtis at [email protected], Geoffrey Clark at [email protected], or Heni Ben Amor [email protected].
http://interactive-robotics.engineering.asu.edu/interaction-primitives/
For further information, please consult the below peer-reviewed conference papers:
We have also made several conference presentations available to watch:
If you use this library, please cite one of the following papers:
@InProceedings{campbell2019probabilistic,
title={Probabilistic Multimodal Modeling for Human-Robot Interaction Tasks},
author={Campbell, Joseph and Stepputtis, Simon and Ben Amor, Heni},
booktitle={Robotics: Science and Systems},
year={2019}
}
@InProceedings{campbell19bayesian,
title = {Bayesian Interaction Primitives: A SLAM Approach to Human-Robot Interaction},
author = {Joseph Campbell and Heni Ben Amor},
booktitle = {Proceedings of the 1st Annual Conference on Robot Learning},
pages = {379--387},
year = {2017},
editor = {Sergey Levine and Vincent Vanhoucke and Ken Goldberg},
volume = {78},
series = {Proceedings of Machine Learning Research},
address = {},
month = {13--15 Nov},
publisher = {PMLR},
pdf = {http://proceedings.mlr.press/v78/campbell17a/campbell17a.pdf},
url = {http://proceedings.mlr.press/v78/campbell17a.html}
}
This project is licensed under the MIT license, included in this directory.
This library has been developed by Joseph Campbell at Arizona State University with contributions from Simon Stepputtis, Geoffrey Clark, Michael Drolet, and Heni Ben Amor. This library (or variations thereof) has been successfully utilized in the following works:
This work was supported in part by the National Science Foundation under grant No. IIS-1749783 and the Honda Research Institute.