Skip to content
/ HMM Public

This repo including the old version of our introspective system. its aim for testing the algorithms.

License

Notifications You must be signed in to change notification settings

HongminWu/HMM

Repository files navigation

birl HMM Repository


Purpose Of This Repository

This repository deals with data published by topic_multimodal node which resides in birl_baxter_tasks repository.

The data we're dealing with contain robot endpoint pose and endpoint wrench. We want to analyse those data that are from successful trials, and in the test phase, to detect anomalies in arriving data. This repository serves this purpose.

For the details of our method, have a look at this paper(link to be updated).

How To Run These Codes

To Train HMM Model

  1. install dependencies

  2. download our dataset repository

  3. tune configuration in ./hmm_for_baxter_using_only_success_trials/training_config.py.

    usually, we only need to modify the config_by_user variable. The fields of this variable we need to modify are:

    • bath_path: set this path to be the folder path of the dataset which you want to use. E.g.:
    path_to_dataset_repository/REAL_BAXTER_PICK_N_PLACE_with_5_states_20170714
    
  4. run the following commands:

    cd hmm_for_baxter_using_only_success_trials
    python birl_hmm_user_interface.py --train-model --train-threshold
    

    these two commands will train the HMM model and train the threshold which is used in anomaly detection.

  5. check the dataset folder, you will find 2 folders named model and figure. model stores the models trained with the dataset. figure stores some plots that help us assess the models.

To Run HMM Online Service

Remember that our goal is to provide anomaly detection service for robot task execution. run the following command to bring up this service:

python birl_hmm_user_interface.py --online-service

About

This repo including the old version of our introspective system. its aim for testing the algorithms.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages