Teleoperation
python teleop.py --task Real2Sim --ds_name [DS_NAME] usd_path=[USDPATH] actions.type=[relative/absolute] --enable_cameras --headless
Collect Motion Planned Trajetories
todo
Rollout models in simulation
python collect.py --task Real2Sim usd_path=./data/basement_flat.usd data_collection.save=False actions.type="relative"
Rollout models in real-world
python deploy_real.py
- Clone this repo!
- Create conda/mamba environment with
conda create -n real2sim python=3.10
ormicromamba create -n real2sim python=3.10
- Activate the environment:
conda activate real2sim
- Install dependencies using requirements file.
pip install -r ./requirements.txt
- Go to
https://github.com/arhanjain/M2T2
, clone it anywhere, and follow the README instructions there to install M2T2 - Specify the path to
m2t2.pth
model weights inconfig/config.yml
under grasp.eval section - Go to
https://curobo.org/get_started/1_install_instructions.html#install-for-use-in-isaac-sim
and install CuRobo - Make a
data
folder and add the usdz file sent by @arhanjain into thedata
directory - Run
python scripts/xform_mapper.py --usd_path [PATH_TO_USDZ]
- Open
config/config.yml
and replace the usd_info_path with the output path of file produced by step 4. - Run
python collect.py --task Real2Sim
- Convert your data to hdf5 format using
python scripts/convert_to_hdf5.py --data_dir [DATADIR]
If you reach this point, you have now at least begun data collection successfully. For next steps, reach out to Arhan.
- Open 3 Terminal Shells: This setup requires three separate terminal windows.
- Activate Conda Environment: In each shell, activate the
arhan-droid
environment with:conda activate arhan-droid
- Navigate to Project Directory: Change directory to
~/droid/
in each shell:cd ~/droid/
- Run Commands in Order:
- In the first shell, run:
./droid/franka/launch_robot.py
- In the second shell, run:
./droid/franka/launch_gripper.py
- In the third shell, run:
./scripts/server/launch_server.py
Hint: Ensure that both the robot and the gripper are shown as connected in the launch robot/gripper scripts!
- In the first shell, run:
The Control PC section covers the setup steps specific to the PC used for controlling the teleoperation system.
- Activate Conda Environment: Open a terminal and activate the
auto-articulate
environment:conda activate auto-articulate
- Connect Oculus: Ensure the Oculus device is properly connected to the Control PC.
- Verify Connection: Run the following command to check that the Oculus device is recognized:
You should see the Oculus device listed as "attached" if it’s connected correctly.
adb devices
- Navigate to Project Directory: Change directory to
~/projects/clean-up-the-kitchen/
:cd ~/projects/clean-up-the-kitchen/
- Run Teleoperation Script: Start the teleoperation process by running:
Replace
python ./scripts/teleop_real [DATASET_NAME]
[DATASET_NAME]
with your desired dataset name to save the session’s data.