Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rdeits/iris-distro
Iterative Regional Inflation by SDP
https://github.com/rdeits/iris-distro
Last synced: 2 days ago
JSON representation
Iterative Regional Inflation by SDP
- Host: GitHub
- URL: https://github.com/rdeits/iris-distro
- Owner: rdeits
- License: other
- Created: 2014-03-27T20:57:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-11-03T20:22:09.000Z (about 4 years ago)
- Last Synced: 2024-10-12T14:53:04.327Z (about 1 month ago)
- Language: Matlab
- Size: 7.01 MB
- Stars: 164
- Watchers: 10
- Forks: 76
- Open Issues: 13
-
Metadata Files:
- Readme: Readme.md
- License: license.txt
Awesome Lists containing this project
README
Introduction
============This package contains the IRIS algorithm for iterative convex regional inflation by semidefinite programming, implemented in C++ with bindings for Python. It is designed to take an environment containing many (convex) obstacles and a start point, and to compute a large convex obstacle-free region. This region can then be used to define linear constraints for some other objective function which the user might want to optimize over the obstacle-free space. The algorithm is described in:
R. L. H. Deits and R. Tedrake, “Computing large convex regions of
obstacle-free space through semidefinite programming,” Workshop on the Algorithmic Fundamentals of Robotics, Istanbul, Aug. 2014.
[Online]. Available:
http://groups.csail.mit.edu/robotics-center/public_papers/Deits14.pdf[![Build Status](https://travis-ci.org/rdeits/iris-distro.svg)](https://travis-ci.org/rdeits/iris-distro)
MATLAB Support
==============A pure-MATLAB implementation of IRIS is also included in `src/matlab`. This will be slower and less flexible than the Python and C++ versions, but may be useful for legacy code.
Requirements
============Ubuntu (with apt-get):
pkg-config
cmake
libgmp-devMac OSX (with homebrew):
pkg-config
cmake
gmpYou'll also need some python packages to build and use the python bindings. You can install them on ubuntu with these apt-get packages:
python-numpy
python-scipy
python-matplotlib
python-nose
cythonOr you can install the `liblapack-dev`, `libblas-dev`, and `gfortran` packages from apt-get, and then install the python modules with pip:
pip install -r python_requirements.txt
You'll also need a license for the Mosek optimization toolbox (this package includes a downloader for the Mosek code, but you have to get your own license). Mosek has free licenses available for academic use.
Installation
============This project is configured as a standard CMake project, so the general build process is:
mkdir build
cd build
cmake ..
make------------------------------
Installation without externals
------------------------------
By default, IRIS will build its external dependencies as part of the build process. If you want to turn any or all of them off, you can set the `WITH_EIGEN`, `WITH_CDD`, and `WITH_MOSEK` options to `OFF` using cmake. The easiest way to do that is to run:cd build
ccmake .which will launch a terminal-based GUI to let you change those options.
If you're using IRIS as part of another project with cmake, you can just set the CMAKE_CACHE_ARGS to include `-DIRIS_WITH_EIGEN:BOOL=OFF` etc. For more information, see: .
Example Usage
=============Python wrapper
--------------python -m irispy.test.test_iris_2d
C++ library
-----------See `iris/src/iris_demo.cpp` for a basic usage example.
Examples
========Here are some animations of the algorithm running in various
environments:2-dimensional space, 30 obstacles:
![](https://rdeits.github.io/iris-distro/examples/poly_2d_N30/animation.gif)
2-dimensional space, 50 obstacles:
![](https://rdeits.github.io/iris-distro/examples/poly_2d_N50/animation.gif)
2-dimensional space, 50 obstacles:
![](https://rdeits.github.io/iris-distro/examples/poly_2d_N50_2/animation.gif)
2-dimensional space, 1000 obstacles:
![](https://rdeits.github.io/iris-distro/examples/poly_2d_N1000/animation.gif)
3-dimensional space:
![](https://rdeits.github.io/iris-distro/examples/poly_3d/animation.gif)
3-dimensional space:
![](https://rdeits.github.io/iris-distro/examples/poly_3d_2/animation.gif)
3-dimensional configuration space of a rod-shaped robot translating and yawing:
![](https://rdeits.github.io/iris-distro/examples/c_space_3d/animation.gif)
3-dimensional slice of a 4-dimensional region among 4D obstacles:
![](https://rdeits.github.io/iris-distro/examples/poly_4d/animation.gif)
Example Application
===================
This is a demonstration of path-planning for a simple UAV model around obstacles. Rather than constraining that the UAV be outside the obstacles, we seed several IRIS regions and require that the UAV be inside one of those regions at each time step. This turns a non-convex problem into a mixed-integer convex problem, which we can solve to its global optimum. You can try this out by running `iris.test.test_uav_demo();` or `iris.test.test_uav_demo('4d');`![](http://rdeits.github.io/iris-distro/examples/uav/demo_uav.png)