Workflow: DexMachina (Genesis)
The DexMachina workflow integrates SPIDER with Genesis simulator and DexMachina framework for dexterous manipulation with downstream RL training.
Prerequisites
Install DexMachina Environment
Follow the official DexMachina installation guide:
bash
# Create DexMachina conda environment
conda create -n dexmachina python=3.12
conda activate dexmachina
# Install Genesis
git clone https://github.com/Genesis-Embodied-AI/Genesis.git
cd Genesis
pip install -e .
# Install DexMachina
git clone https://github.com/MandiZhao/dexmachina.git
cd dexmachina
pip install -e .Install SPIDER (Minimal)
Install SPIDER without MuJoCo Warp (only need optimization components):
bash
cd /path/to/spider
conda activate dexmachina
# Install SPIDER without dependencies (DexMachina has its own)
pip install --ignore-requires-python --no-deps -e .Running DexMachina Workflow
Basic Example
bash
conda activate dexmachina
cd /path/to/spider
# Run with default config (Allegro hand, cube repose task)
python examples/run_dexmachina.pyThis will:
- Initialize Genesis environment with DexMachina task
- Load reference motion from task
- Optimize trajectory with Sampling
- Save optimized trajectory and video
