Skip to content

[T-RO] MATLAB implementation of PRobabilistically-Informed Motion Primitives (PRIMP), a learning-from-demonstration method on Lie group.

License

Notifications You must be signed in to change notification settings

ChirikjianLab/primp-matlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PRobabilistically-Informed Motion Primitives (PRIMP)

MATLAB implementation of PRobabilistically-Informed Motion Primitives, a learning-from-demonstration method on Lie group. It is published in IEEE Transactions on Robotics (T-RO).

Authors

Sipu Ruan, Weixiao Liu, Xiaoli Wang, Xin Meng and Gregory S. Chirikjian

Dependency

Running instructions

Data preparation for LfD methods

All test files are located in /test folder. To run scripts for LfD methods:

  • Download the data from Google Drive. All the demonstrated datasets are locataed in /demonstrations folder.
  • Generate /data folder that stores all demonstration data
  • Copy all the demonstration sets into the /data folder (Only put folders inside /demonstrations into /data)
  • (Optional) To generate data trials for real-world experiments, please also download datasets from /experiments folder (Put the whole folder).
  • Run scripts in /test folder

After data preparation, the structure of /data folder should look like

.
└───data
│   └───panda_arm
|   |   └───real
|   |   |   └───trajectory
|   |   |   |   └───...
|   |   └───simulation
|   |   |   └───...
│   └───lasa_handwriting
|   |   |   └───pose_data
|   |   |   |   └───...
│   └───experiments
|   |   └───...

Source code for Orientation-KMP method

To run Orientation-KMP method,

addpath path-prefix/pbdlib-matlab/demos/m_fcts/
addpath path-prefix/robInfLib-matlab/fcts/

Mex DTW C-code

DTW is required to evaluate method performance. The source C code is /src/util/dtw_c.c, which needs to be generated as a .mex file.

  • Go to /src/util
  • Mex the C code for DTW
mex dtw_c.c

Demonstration scripts

Dataset

PRIMP

Orientation-KMP

Benchmark scripts

Ablation studies

Real-world experiments

Citation

S. Ruan, W. Liu, X. Wang, X. Meng and G. S. Chirikjian, "PRIMP: PRobabilistically-Informed Motion Primitives for Efficient Affordance Learning from Demonstration," in IEEE Transactions on Robotics, doi: 10.1109/TRO.2024.3390052.

BibTex

@ARTICLE{10502164,
  author={Ruan, Sipu and Liu, Weixiao and Wang, Xiaoli and Meng, Xin and Chirikjian, Gregory S.},
  journal={IEEE Transactions on Robotics}, 
  title={PRIMP: PRobabilistically-Informed Motion Primitives for Efficient Affordance Learning from Demonstration}, 
  year={2024},
  volume={},
  number={},
  pages={1-20},
  keywords={Trajectory;Robots;Probabilistic logic;Planning;Affordances;Task analysis;Manifolds;Learning from Demonstration;Probability and Statistical Methods;Motion and Path Planning;Service Robots},
  doi={10.1109/TRO.2024.3390052}}

About

[T-RO] MATLAB implementation of PRobabilistically-Informed Motion Primitives (PRIMP), a learning-from-demonstration method on Lie group.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages