GitHub - unified-force/UniFP: CoRL2025 UniFP: Learning a Unified Policy for Position and Force Control in Legged Loco-Manipulation (original) (raw)

Overview

This project implements a reinforcement learning-based whole body control framework for B2Z1 robots, supporting unified policy learning for both position and force control. The framework uses Isaac Gym for simulation training and supports deployment from simulation to real robots.

Key Features:

TODO

Installation

System Requirements

Installation Steps

  1. Clone this project
    git clone https://github.com/deathpoker/UniFP.git
    cd UniFP
  2. Set up the environment
    conda create -n unifp python=3.8

isaacgym requires python <=3.8

conda activate unifp

Download the Isaac Gym binaries from https://developer.nvidia.com/isaac-gym

wget https://developer.nvidia.com/isaac-gym-preview-4
tar -xvzf isaac-gym-preview-4
cd isaacgym/python && pip install -e .
For libpython error:

  1. Install Python dependencies

Install PyTorch

conda install pytorch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 pytorch-cuda=12.1 -c pytorch -c nvidia

Install other dependencies

pip install numpy matplotlib wandb

Usage

Policy Training

B2Z1 Position-Force Control Training

cd legged_gym/scripts python train_b2z1posforce.py --task=b2z1_pos_force --headless

Policy Evaluation and Testing

Run Trained Policies

B2Z1 position-force control testing

python play_b2z1posforce.py --task=b2z1_pos_force --load_run=

Parameter Configuration

Training Parameters

Environment Parameters

Core Components