Kuavo Docs
Feature ExamplesGeneral Examples

VR Usage Development Case

Overview

  • This case uses the Quest3 VR device. The VR controllers can be used to teleoperate the robot arms and dexterous hands as well as to perform basic robot locomotion, and can be used for embodied intelligence data collection.

QUEST 3 Device

  • quest3

Controllers

  • controller

Introduction

When performing teleoperation, we need to use the Quest3 device to capture the user's motions and control the robot to collect data. This document introduces several issues you may encounter and operations you may need during the use of Quest3.

Installing SideQuest

If you cannot download it, you can install it from the source we provide. Our address is: SideQuest Download Address. Please note that this source is not updated in sync with the official version; the currently synced date is 2024/11/22. If you find that the version is far out of date, please download the software yourself.

For basic usage, please refer to the official video, or the video on Bilibili: Basic Usage of SideQuest

Video on how to authorize in Quest3: Quest3 Allow Authorization

How to Update the Quest3 System Firmware

It is currently known that system firmware version V68 has issues with lag and controller positioning. If your device is running V68, you need to upgrade the system firmware.

To upgrade the system firmware, Quest3 must be connected to a network environment that can access Meta servers.

For the specific upgrade method, please refer to: Quest3 Update System Firmware

How to Launch Installed Applications

Controllers: How to Launch Applications - Controllers

Hand tracking: How to Launch Applications - Gestures

How to Export Recorded Videos

During technical support, engineers may need you to record a video of the operations in the software and send it to us.

For how to record a video, please refer to: Quest3 Record Video

For how to export a video, please refer to: Quest3 Screen Recording Sharing

How to Remove the Space Boundary

By default, Quest3 requires the user to set up a virtual space. When you move out of this space while operating in VR, our program automatically pauses and prompts you to return to the virtual space. This becomes a limitation in scenarios such as exhibition halls. If you want to remove this limitation, you can refer to the following video. Note: after following the instructions in the video, passthrough on the main interface will not work, but you can still see through when inside the application, so usage is not affected.

Reference video: Quest3 Break Through Space Limitation

How to View the Quest3 Cast Screen in Real Time

  1. First complete the authorization steps. Please refer to the earlier section: <如何在 Quest3 里面授权的视频>

  2. Install according to your system

  1. After extracting each archive, open a terminal in the corresponding directory, make sure the current computer is connected to Quest3 via USB and that Quest3 is powered on

  2. Run the corresponding scrcpy command

Example video

QUEST3 VR Control

Preparation

  1. Device preparation:

    • QUEST 3 headset
    • KUAVO_HAND_TRACK VR application (please contact Leju staff to install)
  2. Network preparation:

    • Make sure the VR device and the robot are connected to the same WiFi

Usage

  • If your robot's end effector is a gripper

    • Check the file /home/lab/kuavo-ros-opensource/src/kuavo_assets/config/kuavo_v$ROBOT_VERSION/kuavo.json on the lower-level computer

      • Locate the line "EndEffectorType": ["qiangnao", "qiangnao"],
      • Change it to "EndEffectorType": ["lejuclaw", "lejuclaw"], (no modification is needed if it is already "lejuclaw")
    • Check the file /home/lab/kuavo-ros-opensource/src/manipulation_nodes/noitom_hi5_hand_udp_python/launch/launch_quest3_ik.launch on the lower-level computer

      • Locate the line <arg name="ee_type" default="qiangnao"/>
      • Change it to <arg name="ee_type" default="lejuclaw"/> (no modification is needed if it is already "lejuclaw")
    • Check the file /home/lab/kuavo-ros-opensource/src/humanoid-control/humanoid_controllers/launch/load_kuavo_real_with_vr.launch on the lower-level computer

      • Locate the line <arg name="ee_type" default="qiangnao"/>
      • Change it to <arg name="ee_type" default="lejuclaw"/> (no modification is needed if it is already "lejuclaw")
    • Note: this configuration becomes invalid after the code repository is updated, so you need to check and configure it again

  • If your old system image does not include the VR-related dependencies, you need to install them manually: cd src/manipulation_nodes/noitom_hi5_hand_udp_python && pip install -r requirements.txt && cd -

Starting the Python Version of IK (Absolute VR Following Human Pose)

  • Start the robot normally and complete standing

  • Start the VR node

    sudo su
    source devel/setup.bash
    
    # VR先和机器人连到同一局域网, VR 会广播 自身IP 到局域网中
    # 启动python版本的ik(跟随人体姿态)
    roslaunch noitom_hi5_hand_udp_python launch_quest3_ik.launch

    If you enter the VR IP address manually, append the parameter ip_address:=192.168.3.32 to the launch command (replace it with the VR's actual IP address)

    Now the APP in the VR headset broadcasts its own IP automatically, so you do not need to enter the IP manually when starting the node. However, if the VR node program is closed, you need to reopen the VR program in the VR headset before the IP is broadcast again.

    After starting the program, place the controllers out of your field of view to trigger the hand tracking function in VR. In arm-following mode, you can control the robot arms and fingers to follow the motion. At this time, be careful to avoid multiple detection targets (multiple pairs of hands) in the field of view. The gesture detection result is shown below:

    手势识别

    By default, both hands are controlled. If you want to control only one hand, you can add the option ctrl_arm_idx:=0, where 0, 1, and 2 correspond to the left hand, right hand, and both hands respectively.

    To enable gesture recognition, you can add the option predict_gesture:=true to predict gestures using a neural network. The dexterous hand will move directly according to the gesture prediction result. Currently supported gestures: (a specific gesture category is returned only when the prediction result simultaneously satisfies: high confidence (>80%), clearly better than the second prediction (difference >0.3), and a concentrated prediction distribution (entropy <0.8). Otherwise, the prediction is considered failed and the dexterous hand is controlled in the original way.)

  • Start the VR node and the robot together

    • Run
    sudo su
    source devel/setup.bash
    roslaunch humanoid_controllers load_kuavo_real_with_vr.launch
  • Torso mapping

    • Run

    First, you need to add the parameter control_torso:=true when launching the launch file

      roslaunch noitom_hi5_hand_udp_python launch_quest3_ik.launch ip_address:=填入VRip control_torso:=true

    After the VR program starts, press and hold the A button on the right controller for about 0.35 seconds to trigger standing. Press and hold the left and right front triggers to unlock the hands, then press the left front trigger + B to enter torso mapping mode. At this point the operator can squat and lean forward and backward to bow. Before use, be sure to long-press the Meta button on the VR right controller while standing to calibrate the torso height. Note: Do not perform squatting and bending for extended periods, and the range of torso motion should not be too large.

  • Low-latency mode

    In wired mode, it is recommended to use low-latency mode for faster motions

    • Preparation before use

    Refer to Wired VR Usage Tutorial. Note that if the network cable and the VR adapter cable use a USB connector, you must use a USB 3.0 adapter; otherwise the router may not recognize the VR device. Then check the VR device's IP address in the router's admin panel - Run

    • Run
    roslaunch noitom_hi5_hand_udp_python launch_quest3_ik.launch ip_address:=vr有线ip 

    After the VR program starts, press the left front trigger + X simultaneously to enable low-latency mode; press the left side trigger + X to disable low-latency mode.

Starting the C++ Version of IK (End-Effector Incremental VR)

  • First check whether the with_mm_ik parameter in src/humanoid-control/humanoid_controllers/launch/load_kuavo_real.launch is true
  • Start the robot normally and complete standing
  1. Start the VR node
# 增量位置 + 绝对姿态
roslaunch noitom_hi5_hand_udp_python launch_quest3_ik.launch ip_address:=your quest ip use_cpp_incremental_ik:=true use_incremental_hand_orientation:=false

# 增量位置 + 增量姿态
roslaunch noitom_hi5_hand_udp_python launch_quest3_ik.launch ip_address:=your quest ip use_cpp_incremental_ik:=true use_incremental_hand_orientation:=true
  1. Human pose calibration To ensure operational precision and comfort, you can optionally wear the headset on your head or around your neck:
  • Normal head-mounted calibration:
    • Wear the VR headset normally.
    • The operator's upper arms hang naturally, with the forearms held horizontally at the sides of the waist.
    • Long-press the Meta button to calibrate.
  • Neck-mounted mode calibration (not needed if you are not using neck mounting):
    • Take off the VR headset and wear it around your neck (make sure it is centered and symmetric).
    • Keep the upper arms hanging naturally and the forearms horizontal at the sides of the waist.
    • Long-press the Meta button again to calibrate.
  1. Activate incremental control
  • Press left controller X + right controller A simultaneously.
  • Status confirmation:
    • If the arms switch from slightly bent to fully extended, activation is successful.
    • Wait 5 seconds for the robot to get ready.
    • If there is no response, try pressing X + A again.
  1. Incremental operation instructions
  • After the robot's arms have been fully extended for 5 seconds, press the side trigger on either controller to start controlling.
Left Trigger (L)Right Trigger (R)Robot BehaviorExpected Response
✔ Pressed⭕ ReleasedLeft arm moves onlyThe right arm stays locked; the left arm follows the controller's incremental movement
⭕ Released✔ PressedRight arm moves onlyThe left arm stays locked; the right arm follows the controller's incremental movement
✔ Pressed✔ PressedBoth arms moveBoth hands are controlled incrementally at the same time
⭕ Released⭕ ReleasedStop/LockBoth arms stop immediately at their current positions and do not follow
  1. Operation tips
  • Handling limited space:
    • In straight-arm mode, when retracting the arms backward, if you feel that your range of motion is limited, you can first move the arms slightly outward (left hand to the left, right hand to the right) and then retract them.
  • Segmented operation:
    • Switching from "absolute" to "incremental" takes some getting used to.
    • For long-distance or fine operations, it is recommended to adopt the strategy of "release the trigger → adjust your hand to a comfortable position → press the trigger again" to find the most comfortable operating posture and relieve fatigue.
  • Posture adjustment:
    • Incremental mode does not depend on the mapped position of the human arm, but maintaining a posture consistent with the device provides a better operating experience. It is recommended to keep a posture relatively close to the device during incremental operation.

QUEST3 Video Stream

This program can transmit the camera feed from the host computer to the VR device for display. The specific setup steps are as follows:

  1. Install dependencies on the host computer (the device with the camera):
  • You need to clone the lower-level computer's kuavo-ros-opensource repository, then configure the dependencies:
    cd /home/lab/kuavo-ros-opensource
    sudo apt install v4l-utils
    sudo su
    python3 -m pip install aiortc==1.9.0
    catkin build  noitom_hi5_hand_udp_python
  1. Start the video stream:
  • Install dependencies:
sudo apt install libv4l-dev
  • Run on the host computer:

    cd ~/kuavo_ros_application/
    source devel/setup.bash
    # 打开摄像头
    # 旧版4代, 4Pro
    roslaunch dynamic_biped load_robot_head.launch
    # 标准版, 进阶版, 展厅版, 展厅算力版
    roslaunch dynamic_biped load_robot_head.launch use_orbbec:=true
    # Max版
    roslaunch dynamic_biped load_robot_head.launch use_orbbec:=true enable_wrist_camera:=true
  • Run on the lower-level computer (lower-level computer repository version > 1.2.1):

    # 下面程序已经启动了VR控制程序,请勿重复遥控器启动
    roslaunch noitom_hi5_hand_udp_python launch_quest3_ik_videostream_robot_camera.launch # ip_adress:=填入VR IP地址

If the video stream displayed on the VR device is flipped and the robot camera is an Orbbec camera, you can resolve it as follows

Prerequisites

  1. Download the patched APK
    leju_kuavo_hand-0.0.1-298-gdc7cfac.apk

  2. Prepare a USB cable
    Used to connect your computer and the Quest 3 device

  3. Install the ADB tools (skip if already installed)

   tar -xzf scrcpy-linux-x86_64-v3.3.1.tar.gz
   cd scrcpy-linux-x86_64-v3.3.1

Installation Steps

Step 1: Connect the device and authorize

  1. Connect the Quest 3 to your computer with a USB cable
  2. Put on the VR headset; a USB debugging authorization prompt will appear. Select "Always allow" and confirm

Step 2: Place the APK file in the adb tools directory

  • Windows: Copy the downloaded APK file into the extracted scrcpy directory (the same directory as adb.exe)
  • Linux:
  cp /path/to/leju_kuavo_hand-0.0.1-298-gdc7cfac.apk ./

Step 4: Install the APK

Run the following in a terminal (from the directory containing adb):

  • Windows:
  .\adb.exe install leju_kuavo_hand-0.0.1-298-gdc7cfac.apk
  • Linux:
  ./adb install leju_kuavo_hand-0.0.1-298-gdc7cfac.apk

Notes

  • ⚠️ Make sure the VR device has sufficient battery before installing
  • ⚠️ Make sure the USB cable supports data transfer (some charging cables do not)
  • 💡 A "Success" message will appear after a successful installation
  • 💡 If adb keeps showing "waiting for device", check whether the VR device has authorized USB debugging