Skip to content
/ FILIC Public

Dual-Loop Force-Guided Imitation Learning with Impedance Torque Control for Contact-Rich Manipulation Tasks

License

Notifications You must be signed in to change notification settings

OpenGHz/FILIC

Repository files navigation

FILIC: Dual-Loop Force-Guided Imitation Learning with Impedance Torque Control for Contact-Rich Manipulation Tasks

License Python

📦 Installation

Clone this repository and install dependencies

git submodule update --init --recursive
pip install -e .
bash install.sh

Our modifications are based on some third-party repositories, and the following patch needs to be applied:

git -C third_party/DISCOVERSE am $(pwd)/patch/discoverse.patch

💡 Usage Examples

Collecting Demonstrations

To collect demonstrations in simulation, run:

python3 third_party/DISCOVERSE/discoverse/examples/mocap_ik/mocap_ik_manipulator.py -r airbot_play_force -t peg_in_hole --mouse-3d --record

The data will be saved in the third_party/DISCOVERSE/data directory by default.

Converting Data

To convert the collected demonstrations data to the required format for training, run:

python3 filic/convert_data.py --root third_party/DISCOVERSE/data --task-name airbot_play_force_peg_in_hole --output-dir third_party/DISCOVERSE/policies/act/data/mcap

This will convert the data and save it in the specified output directory.

Training the Policy

To train the policy, run:

CUDA_VISIBLE_DEVICES=0 python3 train.py -tn airbot_play_force_peg_in_hole

The trained models and logs will be saved in the third_party/DISCOVERSE/policies/act/my_ckpt directory by default.

Evaluating the Policy

To evaluate the trained policy, run:

CUDA_VISIBLE_DEVICES=0 python3 infer.py -tn airbot_play_force_peg_in_hole -ts <timestamp>

Please replace -ts with the appropriate timestamp of your trained model.

⚖️ License

FILIC is released under the MIT License. See the license file for details.

About

Dual-Loop Force-Guided Imitation Learning with Impedance Torque Control for Contact-Rich Manipulation Tasks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published