This is our code base for sim2real experiments of our SPIL model. The experiment setting is similar to CALVIN benchmark which is illustrated in the right side of following figure.
- 1x Franka Emika Pandas Robot Arm
- 2x Realsense D435 Cameras
- Ubuntu 20.04.6 LTS (Focal Fossa)
- Tabletop Environment
- Following the instructions to install libfranka and rt-kernel on your ubuntu system
- Install Frankx according to this
- example folders contains some codes to get familiar with frankx
create an virtual environment and install the required packages through
pip install -r requirements.txt
cd models/skill_generator
pip install -e .
cd ../SPIL
pip install -e .
To get the serious number of your D435 cameras:
cd perception/utils
python3 connect_devices.py
change ids of DEVICE_NAME_LIST in perception/perception.py with those serious numbers
The trained policy should be copied into SPIL and skill_generator modules' checkpoints folder
To test your trained policy, please run python3 agent.py