Skip to content

zlatanajanovic/Stable-Motion-Primitives-via-Imitation-and-Contrastive-Learning

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stable Motion Primitives via Imitation and Contrastive Learning

License

Code accompanying the paper: "Stable Motion Primitives via Imitation and Contrastive Learning" (under review, submitted to T-RO). For details, please refer to https://arxiv.org/pdf/2302.10017.pdf.

The current version of the paper can be cited using the following reference:

@article{perez2023stable,
  title   = {Stable Motion Primitives via Imitation and Contrastive Learning},
  author  = {P{\'e}rez-Dattari, Rodrigo and Kober, Jens},
  journal = {arXiv preprint arXiv:2302.10017},
  year    = {2023}
}

Teaser: executing learned motion for multiple initial conditions

Options

This repository allows learning dynamical systems of multiple dimensions and orders.

First-order 2-dimensional dynamical systems

Second-order 2-dimensional dynamical systems

First-order 3-dimensional dynamical systems

First-order N-dimensional dynamical systems

Robot Experiments

This repository contains simulated experiments; however, this framework has also been tested using a KUKA LBR iiwa robot manipulator. These results are shown in https://youtu.be/OM-2edHBRfc.

Installation with poetry

You can install the package using poetry.

poetry install

Enter the virtual environment using:

poetry shell

Requirements can be found at pyproject.toml. `

Usage

In the folder src run:

Training

  python train.py --params <params_file_name>

The parameter files required for the argument params_file_name can be found in the folder params.

Simulate learned 2D motion

  python simulate_ds.py

Hyperparameter Optimization

  python run_optuna.py --params <params_file_name>

Troubleshooting

If you run into problems of any kind, don't hesitate to open an issue on this repository.

About

Code accompanying the paper: "Stable Motion Primitives via Imitation and Contrastive Learning".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%