Teleoperate your robot (optinally dual arm) with the Meta Quest
In the script franka.py we use the IRIS platform to get controller poses from the meta quest.
With the relative space wrapper and the relative to configured origin setting theses poses are then apply to the robot in a delta fashion whenever the trigger button is pressed.
The buttons are used to start and stop data recording with the StorageWrapper.
Install RCS and the FR3 extension (the script is writte for the FR3 as example but can be easily adapted for other robots).
Install the IRIS APK on your quest following these instructions but use the APK from our fork released here to ensure compatibility (the official IRIS APK and our older rcsv1 release are not compatible).
Finally, install SimPub the IRIS python client by
pip install -r requirements.txt git clone https://github.com/RobotControlStack/SimPublisher.git cd SimPublisher pip install -ve .
- go to
franka.pyand setROBOT_INSTANCE = RobotPlatform.SIMULATION
Note that dual arm is only supported for a aloha like setup where the robot face each other (for more advanced setups you need to change the transformation between the robots yourself).
- put your robots into FCI mode
- go to
franka.py, setROBOT_INSTANCE = RobotPlatform.HARDWAREand set your IP addresses of your robots. Remove the left robot if you only have one.
- Make sure your computer and quest is in the same subnetwork and they can ping each other.
- Check your local machine IP using
ip addrin the terminal and note the IP address of the network interface in the same subnet as your Quest (e.g.192.168.1.xor10.42.0.1). Replace it inexamples/teleop/franka.py:MQ3_ADDR = "<your_pc_ip>" - Start IRIS meta quest app on your quest (it should be located in the Library under "Unknown Sources" after installation)
- Run the
quest_align_frame.pyscript once. Navigate to the link printed on the top likely http://127.0.0.1:5000.- click scan
- your meta quest should show up
- click change name and type "RCSNode" and click ok (this needs to be done only once)
- restart both the app and the script
- the script should now print a bunch of numbers (the controller poses) which means the connection is working
- Put on your quest (don't remove it until done with teleop, otherwise the axis might change and you need to recalibrate), you should see a white ball with coordinate axis somewhere in your room (red is x, green is y and blue is z)
- Use the right controller to change the orientation of the coordinate axis to fit your right robot (for franka: x front, y left, z up)
- Click the "teleportation scene" button on the still open website
- Cancel the script
- Start the teleoperation script
franka.pyand enjoy.
yam.py is the same setup for a single YAM arm.
Follow the quest steps above, they are identical, and align the coordinate axis to the arm base (x front, y left, z up).
The arm follows the right controller, so keep ROBOT_NAME = "right" unless you also change the controller mapping.
- install the YAM extension and bring up its CAN interface (
sudo ip link set can0 up type can bitrate 1000000) - go to
yam.py, setROBOT_INSTANCE = RobotPlatform.HARDWAREand setCAN_CHANNELto your interface, or keepRobotPlatform.SIMULATIONto try it in sim first - to record RealSense cameras, install the RealSense extension and put your camera serial numbers (
rs-enumerate-devices -s) intoCAMERA_DICT, or set it toNoneto run without cameras
rizon.py teleoperates two Flexiv Rizon 4s with Grav grippers.
The arms stand 30 cm apart in y and are each tilted by 45 degrees about x away from the other arm (right +45, left -45 degrees); actions are expressed in the shared frame between the two bases (x front, y left, z up), so align the quest coordinate axis to that frame.
- install the Flexiv extension, put both robots into auto mode and release the E-stops
- go to
rizon.py, setROBOT_INSTANCE = RobotPlatform.HARDWARE, the serial numbers inROBOT_SNand the tool name of the gripper, or keepRobotPlatform.SIMULATIONto try it in sim first (rcs/rizon4s_duo) - if your arms are mounted differently, adapt
ROBOT_TO_SHARED_BASE_FRAMEin the script
Teleoperate your Franka Duo using the Franka GELLO Duo. Install dependencies via
pip install -r requirements.txt
and make sure the GelloConfig is commented in and the QuestConfig is commented out and adapt your USB IDs to it.