Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

See to Reach, Feel to Insert

Two-stage Peg-in-Hole: IL (visual approach) + RL (tactile insertion)

Installation

1. Clone repository

git clone https://github.com/mxp1234/see_to_reach_feel_to_insert.git
cd see_to_reach_feel_to_insert

2. Setup external dependency (diffusion_policy)

Option A: Git Submodule (recommended)

git submodule add https://github.com/real-stanford/diffusion_policy.git external/diffusion_policy
git submodule update --init --recursive

export DIFFUSION_POLICY_PATH=$(pwd)/external/diffusion_policy

Option B: Manual clone

cd ..
git clone https://github.com/real-stanford/diffusion_policy.git
cd see_to_reach_feel_to_insert

# Or set custom path
export DIFFUSION_POLICY_PATH=/your/path/to/diffusion_policy

3. Create conda environment

conda create -n tac-insert python=3.11 -y
conda activate tac-insert

# PyTorch (CUDA 12)
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121

# JAX (CUDA 12)
pip install "jax[cuda12]"

# Other dependencies
pip install -r requirements.txt

# Install local packages
pip install -e serl_launcher
pip install -e serl_robot_infra/franka_env

4. Verify installation

conda activate tac-insert

python -c "import torch; print(f'PyTorch: {torch.__version__}, CUDA: {torch.cuda.is_available()}')"
python -c "import jax; print(f'JAX: {jax.__version__}')"
python -c "import serl_launcher; print('serl_launcher OK')"

Usage

Training

conda activate tac-insert

# Learner (on GPU machine)
export XLA_PYTHON_CLIENT_PREALLOCATE=false
export XLA_PYTHON_CLIENT_MEM_FRACTION=.2
python -m scripts.run_training --learner

# Actor (on robot machine)
export XLA_PYTHON_CLIENT_PREALLOCATE=false
export XLA_PYTHON_CLIENT_MEM_FRACTION=.2
python -m scripts.run_training --actor --ip=<learner_ip>

Hardware

Cameras

Name Serial Resolution
top/side 334622072595 640x480 / 1280x720
wrist_1 126122270333 1280x720
wrist_2 315122270814 1280x720

License

MIT

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages