Abraham190137 / TeleoperationUnity

33 stars 2 forks source link

TeleoperationUnity

Paper:

This repository contains the source code for OpenVR: Teleoperation for Manipulation, which can be found at https://arxiv.org/abs/2305.09765

Instruction for use:

  1. Install Unity Hub with a Unity account here: https://unity.com/download
  2. Clone the repository using git or download this project as a zip file.
  3. Add the project in Unity Hub, by selecting "Add Project from Disk" from the drop-down menu and navigating to the cloned repository
  4. Open the project. Upon opening, Unity may say the project is broken. If it does, click 'Ignore'.
  5. In File -> Build Settings, select the Android platform and click "Switch Platform".
  6. Close Unity and Delete the Oculus folder in the TeleoperationUnity/Assets folder.
  7. Follow all of the instructions here to setup unity with the Oculus and enable developer mode on the Meta Quest: https://developer.oculus.com/documentation/unity/unity-gs-overview/
  8. Then follow the instructions here to properly configure the package: https://developer.oculus.com/documentation/unity/unity-tutorial-hello-vr/
  9. Restart Unity.
  10. Delete the x86 folder and x_86.meta from TeleoperationUnity\Library\PackageCache\com.unity.robotics.urdf-importer@90f353e435\Runtime\UnityMeshImporter\Plugins\AssimpNet\Native\win.
  11. Click build and run to start the building process.

Note: The Oculus SDK is constantly changing, so the Unity-Oculus set-up steps (steps 7 and 8) may be slightly different for you. Before using this repo, I would recommend creating a separate Unity project and following the Oculus tutorial. Once you have successfully created a VR app and pushed it to the Oculus, follow the instructions above. (Note: You will be creating a new Unity project. Do not use the project from the Oculus tutorial). When you get to steps 7 and 8, you can follow the Oculus setup procedure (installing the right SDKs, configuring the build setting, etc.) from the tutorial.

Robot Control:

The Robotic Control folder contains scripts to interface with the Franka Emika Panda robot, either on hardware through the FrankaPy control structure (https://github.com/iamlab-cmu/frankapy) or in simulation, using the PandaGym bybullet based simulator (https://github.com/qgallouedec/panda-gym).

Franka Scripts:

PandaGym Scripts: