In simulation
In this tutorial you will learn to use the VR Headset to teleoperate TIAGo Pro in the Gazebo simulation.
Warning
The controller that receives the commands from the of the VR Headset teleoperation does not have any self-collision avoidance.
Step 0: Pre-requisites¶
You will need
- A laptop connected to a WiFI network
- A configured Meta Quest 3 VR headset connected to the same network as the laptop.
Step 1: Start the robot simulation¶
A simulation has to be running all the time while teleoperating, hence you have to start it beforehand:
ros2 launch tiago_pro_<SN>_gazebo tiago_pro_gazebo.launch.py
Step 2: Start the teleoperation frontend¶
The teleoperation frontend is a bridge between the headset and the robot simulation or real robot.
Open a new terminal in the PAL development docker and execute the following command to start the frontend:
ros2 launch vr_teleop_frontend start_frontend.launch.py
Maintain this terminal open while teleoperating the robot with the VR Headset.
Step 3: Start the teleoperation backend¶
The teleoperation backend manages user commands coming from the headset (arm movements and gripper actions), translating them into appropriate instructions for the controller running in the robot.
Open a new terminal inside the PAL development docker and launch the backend using the unified launch file. Do
ros2 launch vr_teleop_backend arm_velocity_teleop.launch.py mode:=<mode>
where mode can be both, left, or right. This indicates the arms that will be teleoperated.
Available Options¶
- Dual-Arm Control (Default) Use this to teleoperate both arms:
ros2 launch vr_teleop_backend velocity_teleop.launch.py mode:=both
- Single-Arm Control Use this if you want to teleoperate one arm. Replace the
modeargument with eitherleftorright, e.g.,
ros2 launch vr_teleop_backend velocity_teleop.launch.py mode:=left
Step 4: Start the TSID Controller¶
The controller used for the VR headset teleoperation is the cartesian velocity TSID controller.
Load the controller indicating that it will be used in simulation by doing:
ros2 launch tiago_pro_controller_configuration tsid_default_controllers.launch.py use_sim_time:=True
Then activate it. Ensure that any other controllers using the joints you want to teleoperate are deactivated before proceeding. If the robot has as active the default controllers do:
ros2 control switch_controllers --activate arm_right_cartesian_vel_controller_robot_frame arm_left_cartesian_vel_controller_robot_frame --deactivate arm_right_controller arm_left_controller
The robot is now ready to accept teleoperation references.
Step 5: Connect the VR headset¶
After starting the teleoperation frontend, the Web Teleoperation Interface becomes accessible. To access to it do what follows.
Put the VR Headset on and adjust the straps to be comfortable. Connect the VR headset to the same WiFI network as the laptop. Check the instructions here.
Check the IP address of the laptop by doing
ip a
Open the internet browser in the VR headset and go to
https://<ip_recovered>:4443
On the headset, you might get a warning like this:

Figure 1: Safety warning
This warning appears because the Web Teleoperation Interface uses a self-signed HTTPS certificate, which your browser cannot verify. It is safe to proceed—simply accept the warning to continue to the interface.
After entering you should see something like:

Figure 2: TeleoperationWeb Interface
Step 6: VR set controller usage¶
There are three main triggers in the Meta Quest 3 controllers that ensure safe teleoperation of the TIAGo Pro robot. See Figure 3.

Figure 3: Meta Quest 3 Controller triggers
Arm - Main trigger¶
To move the robot arms you must press and hold the main trigger (index finger) has to be pressed. This is a Dead Man's Switch, this is, if this button is not pressed the arms would not move.
-
Active: The robot follows your hand movements 1:1 only while the trigger is held.
-
Idle: Releasing the trigger stops all arm movements immediately, allowing you to reposition your hands or adjust your stance without moving the robot.
Gripper Control - Side Trigger¶
The grippers are controlled using the side trigger (grip button) on the controller. The movement is analog and proportional to the pressure applied
- Released (No pressure): The gripper is fully open.
- Fully Pressed: The gripper is completely closed.
- Partial Pressure: Allows for fine-tuned control of the gripper aperture, useful for grasping objects of different sizes.
Emergency stop - Meta button¶
-
Starting: When you press the Enter VR button in Figure 2 that page will disappear and you will see all black through the headset.
-
Emergency Stop / Reset: You can stop teleoperation at any time by pressing the Meta button
on the right-hand controller. This will immediately bring back the instructions screen and pause the robot.
Persistence of Nodes
If you need to restart the Gazebo simulation, it is not necessary to relaunch the teleoperation backend or frontend nodes. As long as the Docker container is running, the communication bridge will automatically reconnect once the simulation environment is back online and the controllers are loaded and activated again.
Step 7: Teleoperate¶
You are now ready to begin teleoperation. We strongly suggest to start controlling only one arm to familiarize yourself with the system. To do this, press and hold the main trigger (located under your index finger) on the VR controller, then move your hand slowly. The robot should closely follow your hand movements in the simulator. Experiment with different positions and orientations. At any time, you can release the trigger to stop the robot’s movement; the arm will remain in its last position. You can then reposition your hand as needed for more comfortable operation. This allows you to achieve a wide range of arm movements with minimal hand motion.
You can also try teleoperating both arms simultaneously to explore the system’s responsiveness. Since you are operating in simulation, you may experiment with moving the arms close together or even attempting collisions. The controller is designed to prevent self-collisions, so the robot will automatically avoid unsafe configurations while trying to mimic your commands as closely as possible.