Skip to content

iit-DLSLab/sim2real-robot-identification

Repository files navigation

IsaacLab v2.3.0 Mujoco v3.7.0
Z1Real Z1Real

Overwiew

A joint calibration routine for IsaacLab and Mujoco, to estimate motor parameters. It provides scripts for data collection on the real robot (the robot should be in the air with the base fixed if a quadruped, or on a table if a manipulator). This repo interfaces directly with Pace and the new sys-id functionality of Mujoco.

The models (usd and xml) identified so far can be found in the folder robot_model.

Installation

  1. install miniforge (x86_64 or arm64 depending on your platform)

  2. create an environment using the file in the folder installation

conda env create -f mamba_environment_ros2.yaml
conda activate sim2real_robot_identification_ros2_env
  1. install IsaacLab if you need it

Run a collection

This repo works best with unitree-ros2-dls for communicating with unitree go2, b2, a2, and z1 robots. Soon, will support agilex piper arms using piper-ros2-dls2.

  1. Choose the robot and the gains in the config file

  2. In the xml of your robot, add two keyframe (sys_id_1, sys_id_2) to define the start and end point of the chirp trajectory (see here for an example)

  3. Runs one of the following files

python3 run_collection_quadruped_ros2.py
python3 run_collection_manipulator_ros2.py

modifying inside USE_MUJOCO_RENDER and USE_MUJOCO_SIMULATION depending on your usecase

  1. Visualize your trajectory running
python3 datasets/replay_dataset_quadruped.py
python3 datasets/replay_dataset_manipulator.py

Run a calibration in IsaacLab

python3 sysid_isaaclab/my_fit.py --headless

Run a calibration in Mujoco

python3 sysid_mujoco/my_fit.py 

How to contribute

PRs are very welcome (search for TODO in the issue, or add what you like)!

Maintainer

This repository is maintained by Giulio Turrisi and Lorenzo Amatucci.

About

A joints calibration routine for quadrupeds and manipulators to facilitate sim-to-real transfer from isaaclab and mujoco to real robots

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors