Roban2 Docs
Roban2 (ROS1) Legacy VersionsFeature ExamplesGeneral Examples

VR Usage Development Case

Description

  • This case uses the Quest3 as the VR device. With the VR controllers, you can teleoperate the robot's arms and dexterous hands as well as perform basic robot movements, which 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 when using the Quest3, as well as the operations you may need.

Installing SideQuest

If you are unable to download it, you can install it from the source we provide. Our address is: SideQuest Download Address. 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 significantly out of date, please download the software yourself.

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

Video on how to grant authorization in the Quest3: Quest3 Authorization

How to Update the Quest3 System Firmware

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

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

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

How to Launch an Installed Program

Controllers: How to Launch a Program - Controllers

Hand tracking: How to Launch a Program - Gestures

How to Export Recorded Videos

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

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

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

How to Remove the Space Boundary

By default, the Quest3 requires the user to set up a virtual space. When you walk out of this space while operating the VR, our program will automatically pause and prompt you to return to the virtual space. This is a limitation in scenarios such as exhibition halls. If you want to remove this limitation, refer to the following video. Note: after following the instructions in the video, passthrough on the main interface will no longer work, but passthrough still works inside the program, so it does not affect usage.

Reference video: Quest3 Bypassing the Space Boundary

How to View the Quest3 Cast Screen in Real Time

  1. First complete the authorization steps. Please refer to the earlier section:

  2. Install the version for your system

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

  2. Run the corresponding scrcpy command

Example video

QUEST3 VR Control

Preparation

  1. Device preparation:

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

    • Make sure the VR device and the robot are on the same local network

Usage

  • Start the robot normally and complete standing

  • Start the VR node

    • Run

    If an older 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 -

     source devel/setup.bash
    
     # VR先和机器人连到同一局域网, VR 会广播 自身IP 到局域网中
     roslaunch noitom_hi5_hand_udp_python launch_quest3_ik.launch

    If you want to enter the VR's 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)

    The app in the VR headset now automatically broadcasts its own IP, 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 application in the VR headset for it to broadcast its IP again

    If you also want to map torso movements (squatting up and down and bending over), you can add the option control_torso:=1. 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 movements for extended periods, and do not move with excessive amplitude when performing torso movements

    After launching the program, place the controllers out of view, which will trigger the hand tracking function in VR. In arm-following mode, you can control the robot's arms and fingers to follow your movements. At this time, avoid multiple detection targets (multiple pairs of hands) in the field of view. The hand detection effect is shown below:

    Hand tracking

    Both hands are controlled by default. 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. The currently supported gestures are (a specific gesture class 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

    sudo su
    source devel/setup.bash
    roslaunch humanoid_controllers load_kuavo_real_with_vr.launch

QUEST3 Video Stream

When using VR control, you can transmit the camera feed to the VR device for display. The specific setup steps are as follows:

  1. Install dependencies:
  • You need to clone the kuavo-ros-opensource repository, then configure the dependencies:
    cd <kuavo-ros-opensource>
    sudo apt install v4l-utils
    git clone https://github.com/ros-perception/image_common.git  --branch noetic-devel src/image_common
    git clone https://github.com/ros-perception/image_pipeline.git  --branch noetic src/image_pipeline
    git clone https://github.com/ros-drivers/usb_cam.git --branch develop src/usb_cam
    catkin build usb_cam noitom_hi5_hand_udp_python
  1. Start the video stream:
  • Install dependencies:

    sudo apt install libv4l-dev
  • Run:

    roslaunch noitom_hi5_hand_udp_python launch_quest3_ik_videostream_robot_camera.launch