Git Product home page Git Product logo

lgp's Introduction

lgp

This repo implements Dynamic Logic-Geometric Programming for 2D agents on PyBullet.

Installation

This assumes you a;ready install the dependencies for Simon's master thesis repo and humoro.

Clone Simon's master thesis repo:

git clone [email protected]:simon.hagenmayer/hierarchical-hmp.git

Then, clone humoro and lgp to hierarchical-hmp folder, checkout MASimon branch on humoro and install dependencies of lgp:

cd hierarchical-hmp
git clone [email protected]:philippkratzer/humoro.git
git clone https://github.com/humans-to-robots-motion/lgp
cd humoro
git checkout MASimon
cd ../lgp
pip install -r requirements.txt

Also clone bewego into hierarchical-hmp folder:

cd hierarchical-hmp
git clone https://github.com/anindex/bewego --recursive
cd bewego
mkdir -p build && cd build
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWITH_IPOPT=True -DPYBIND11_PYTHON_VERSION=3.5
make
make install

Finally, please download MoGaze dataset and unzip it into lgp/datasets/mogaze.

mkdir -p datasets && cd datasets
wget https://ipvs.informatik.uni-stuttgart.de/mlr/philipp/mogaze/mogaze.zip
unzip mogaze.zip

And also run this script to initialize Pepper URDF:

cd lgp
python3 examples/init_pepper.py

Usage

To see an example of Dynamic LGP, please run:

python3 examples/test_lgp.py -d True -v True -p False

where -d is the option to run in dynamic mode or not, -v True is to enable trajectory optimization visualization and -p is the option to enable human prediction.

To run Dynamic LGP with human prediction, please use the following segment ('p2_1', 137536, 139256):

python3 examples/test_lgp.py --segment "('p2_1', 137536, 139256)" -d True -v True -p True

To reproduce the paper results, please run the following experiment scripts.

  • Dynamic LGP with Human Ground Truth:
python3 examples/experiment_ground_truth.py
  • Dynamic LGP with Long-term prediction:
python3 examples/experiment_prediction.py

The experiment data will be saved as pickle file in folder lgp/data/experiments, rename it to a more shorter name. To visulize data result, please run:

python3 examples/process_data.py --name <your data>.p

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.