AWS Physical AI Blog

From VR Teleoperation to Scalable Physical-AI Data Generation

Overview

Physical AI (also known as embodied AI) is advancing rapidly, but progress remains constrained by the cost and time required to collect high-quality, diverse robot-interaction data in the real world. Modern robot-learning systems rely on demonstrations that combine visual observations, robot states, actions, and task information. Collecting these demonstrations using physical hardware can be slow, expensive, and difficult to scale. This post presents a two-stage pipeline that decouples robot-interaction capture from high-quality visual rendering, making data generation more scalable. Figure 1 illustrates the overall architecture.

By separating what the robot does from what the camera sees, a single demonstration can be rendered into many visually distinct training samples—each with a different appearance but the same underlying robot trajectory.

In Stage 1, an operator teleoperates a digital twin of an SO-101 robot in virtual reality (VR). A physical SO-101 leader arm provides the operator’s motion input, while Unity renders the interactive environment on a Meta Quest headset. Each demonstration is recorded as a replayable JSON trajectory. Because photorealistic rendering is unnecessary during teleoperation, the capture process remains responsive and computationally inexpensive.

In Stage 2, the recorded trajectory is replayed in a photorealistic Blender scene to generate visual observations on AWS. Uploading an episode to Amazon Simple Storage Service (Amazon S3) triggers an automated pipeline that reconstructs the scene, applies visual domain randomization, and submits GPU rendering jobs to an AWS Deadline Cloud fleet. The pipeline generates an MP4 video for each camera view while preserving the original trajectory and associated action labels.

This post explains how each stage is implemented, from VR-based demonstration capture to scalable, randomized rendering on AWS.

Overview of the two-stage Physical AI data-generation pipeline: VR teleoperation capture and automated rendering on AWS

Figure 1. Overview of the two-stage pipeline.

Prerequisites

To reproduce the workflow described in this post, you need:

  • An AWS account with permissions to deploy the required AWS resources.
  • A Meta Quest headset and the Unity VR teleoperation application.
  • A physical SO-101 leader arm and the required LeRobot setup for teleoperation.
  • Blender, to prepare the base scene.
  • An AWS Deadline Cloud environment configured for GPU rendering.

Stage 1: Capturing Robot Demonstrations in VR

The first stage is designed around a simple idea: Capture realistic robot behavior without requiring a photorealistic simulation during teleoperation. The operator controls a virtual SO-101 robot inside a Unity application running on a Meta Quest headset. The motion of the virtual robot comes from a physical SO-101 leader arm, which is connected to a Python teleoperation bridge. The Unity environment is intentionally lightweight. Its purpose is not to produce final training images, but to provide a responsive environment in which a human can naturally perform a robot task. The result of each successful interaction is a structured episode that can later be replayed and rendered in a much more detailed environment.

The system consists of two main components (Figure 2):

  1. Unity application — runs on Meta Quest, simulates the SO-101 robot, provides the VR workspace, and records episodes.
  2. Python teleoperation bridge — reads joint angles from the physical leader arm and streams them to Unity.

Stage 1 VR teleoperation architecture showing the live control path and episode recording

Figure 2. Stage 1 teleoperation architecture: live control path and episode recording.

The Python bridge acts as the TCP client, while Unity acts as the TCP server. The Python process initiates the connection and continuously streams the leader robot’s joint positions to Unity. This separation keeps the real-time VR application focused on interaction and simulation, while the Python process handles communication with the physical robot and persistence of completed episodes.

Unity Environment and Teleoperation

This post uses a pick-and-place task, but you can build your own Unity environment — a factory floor, a laboratory, an office — and capture whatever task suits it. The one firm requirement is physics-based interaction: objects must have rigid bodies and colliders so grasps and placements produce realistic forces.

The physical SO-101 leader arm provides the operator’s motion. The Python script reads the leader arm through LeRobot and streams the six robot joint values to Unity as newline-delimited JSON. The bridge runs at 30 FPS by default, applies small calibration offsets, and automatically reconnects if the TCP connection is interrupted. Once Unity receives a joint command, the controller identifies the robot joints based on their link names and maps them to the logical joints used by the teleoperation protocol. Rather than immediately jumping the simulated joint to the requested angle, it gradually moves the joint toward the target using interpolation. This provides damping and produces smoother motion in the VR environment.

Recording a Robot Demonstration

Once the operator is calibrated, recording an episode is straightforward (Figure 3).

Operator's VR view inside the Meta Quest headset of the pick-and-place task in Unity

Figure 3. Operator’s VR view of the pick-and-place task in Unity.

The operator presses the Start button. The recorder resets the scene and begins sampling the robot state at a configurable interval. The default sampling rate is 10 Hz.

Design note: The bridge streams at 30 FPS for smooth control, while the recorder samples at 10 Hz for compact episodes. Decoupling control rate from capture rate keeps teleoperation responsive without inflating episode size.

For every timestep, the recorder captures four types of information:

  • Robot joint state: observation
  • Commanded joint target: Robot action
  • Object poses
  • Timestamp

A simple operator loop is:

Start → perform the task → cancel and retry if necessary → complete successfully → persist the episode

Only successful demonstrations have persisted as episode artifacts. This prevents failed attempts from automatically entering the downstream rendering pipeline. A demonstration needs a well-defined endpoint. The success detector is task specific. For the pick-and-place task, the success condition is that the blue box must be fully inside the target container. Once the condition is satisfied, the detector fires the success event once. The recorder then:

  1. Captures the final frame.
  2. Stops the recording.
  3. Packages the trajectory as JSON.
  4. Streams the episode back over the existing TCP connection, making the Python bridge the persistence point for completed demonstrations.

At this point the human interaction is complete, and the same successful trajectory can be replayed under different visual conditions.

Stage 2: Auto-Rendering Robot Training Data with AWS

With the demonstration captured, Stage 2 transforms a single trajectory into rendered training data. Uploading an episode JSON file to Amazon S3 triggers a serverless pipeline that reconstructs the episode in Blender and submits it to a GPU rendering farm. The following sections cover the AWS infrastructure behind this pipeline and how it uses visual randomization to turn one recorded episode into multiple training samples.

Note: This pipeline scales visual diversity, not behavioral diversity. A single captured trajectory can be rendered with many different appearances, but the underlying behavior remains the same.

AWS Architecture Overview

RenderDispatchStack is an AWS Cloud Development Kit (AWS CDK) application written in TypeScript that provisions the rendering pipeline as infrastructure as code. It consists of two cooperating layers: an event-driven compute layer that handles rendering, and a web application secured with Amazon Cognito that allows users to submit episodes and monitor their status (Figure 4). This section focuses on the core rendering pipeline; the web application is out of scope.

AWS architecture for automated episode rendering

Figure 4. AWS architecture for automated episode rendering.

The pipeline uses AWS Deadline Cloud to manage GPU rendering. Deadline Cloud scales workers up as the job queue grows and back to zero when rendering completes, so you pay for GPU only during active rendering.

Reconstructing the Digital Twin in Blender

Blender is a 3D computer graphics application supported by AWS Deadline Cloud, with integration options that include job submitters, Conda packages, and a rendering adaptor. This pipeline uses Blender as the rendering environment for the digital twin.

The original workspace is built in Unity for VR teleoperation, so it must first be reconstructed in Blender before the recorded episode can be rendered. For each task, such as pick-and-place, you create a corresponding Blender scene that represents the workspace, robot, objects, and relevant environment. The recorded episode JSON then provides the trajectory needed to replay the demonstration in that scene.

The base scene is prepared once for each task. Every subsequent rendering job starts from this canonical scene, replays the recorded trajectory, and applies a new set of visual randomizations. This separates the cost of preparing the digital twin from the work of rendering individual episodes.

The digital twin is an ordinary Blender scene, which means camera placement is a design choice rather than a constraint imposed by the capture hardware. The pipeline renders two views defined by the scene: an over-the-shoulder context view and an eye-in-hand wrist view. The context camera captures the overall workspace, while the wrist camera is attached to the gripper and moves with the robot’s end effector.

This flexibility is one of the practical advantages of offline rendering. With a physical robot, adding a viewpoint or moving an existing camera may require hardware changes and new demonstrations. With a digital twin, camera placement can be updated directly in the base scene. Previously recorded episodes can then be re-rendered from the new viewpoints without asking the operator to perform the task again.

How the AWS Pipeline Works

At a high level, the pipeline processes each episode through four stages, coordinated by AWS Step Functions.

An episode enters the pipeline as a JSON file uploaded to an Amazon S3 input bucket. The upload sends an event to Amazon EventBridge, which starts an AWS Step Functions execution to orchestrate the rendering workflow:

  1. Reconstruct and submit. A CPU-only Amazon Elastic Container Service (Amazon ECS) task running on AWS Fargate launches Blender to reconstruct the episode in a self-contained scene. It then submits the rendering job to an existing AWS Deadline Cloud farm, where GPU workers render the scene.
  2. Monitor progress. An AWS Lambda function monitors the Deadline Cloud job until it completes.
  3. Encode the videos. Once rendering finishes, a second lightweight Fargate task uses FFmpeg to combine the rendered frames into MP4 videos. It produces one video for each camera view.
  4. Finalize the episode. A final Lambda function updates the Amazon DynamoDB record to DONE and stores the S3 keys for the generated videos.

This event-driven design keeps the rendering process asynchronous. Users can submit episodes without waiting for the GPU rendering and video encoding to finish, then check the status and retrieve the resulting videos later.

Visual Domain Randomization

One of the key benefits of this pipeline is scalability. Stage 1 described how an operator records a single demonstration. This section shows how that demonstration can be transformed into multiple training samples by applying controlled visual domain randomization. By decoupling appearance from behavior, the pipeline generates visually diverse versions of the same demonstration without requiring the operator to perform the task again.

For the pick-and-place task, each render can independently vary the following elements:

  • Table and bin textures — Random physically based rendering (PBR) materials are applied to the tabletop and bin, varying properties such as color, metallicity, roughness, normal maps, and displacement.
  • Environment — The enclosing room can be replaced with a high-dynamic-range image (HDRI) that provides both the background and environmental lighting. Its orientation is randomized for additional variation.
  • Distractor objects — Additional objects can be placed on the table to introduce visual clutter.
  • External camera pose — Small adjustments to the position and look-at point of the over-the-shoulder camera create variation in the context view.

For example, a single teleoperated episode can generate up to 100 visual variants by combining 5 table and bin material configurations, 5 HDRI environment configurations, 2 distractor object configurations, and 2 external camera poses. These variations change the visual appearance of the scene while preserving the original robot actions and task trajectory. The assets used for randomization are provided by the user and staged in Amazon S3. Each category is optional, and the asset library only needs to be prepared once. Subsequent rendering jobs draw from this library to generate new visual variations.

For each episode, the Blender task running on AWS Fargate follows these steps:

  • Retrieve the base scene, rig configuration, and episode JSON from S3.
  • Randomize the visual scene using the available assets and settings.
  • Apply the recorded episode trajectory to the scene.
  • Configure the rendering and color settings in a prepared copy of the scene.
  • Submit the prepared Blender scene to AWS Deadline Cloud for rendering.

The key invariant is that randomization affects only visual appearance and observations—including materials, lighting, surroundings, clutter, and the external camera viewpoint. The recorded behavior remains unchanged: the robot follows the same trajectory with the same frame count and timing. This allows a single demonstration to produce multiple visually distinct training samples while preserving the underlying task execution. Figure 5 shows two examples of visual randomization applied to the same episode, viewed from context camera. Each sample features different distractor objects and table textures, while preserving the original robot trajectory and task execution.

One recorded trajectory rendered with two different visual randomizations, viewed from the context camera

Figure 5. One trajectory, two visual randomizations.

The GPU Render Fleet

Rendering runs on an AWS Deadline Cloud service-managed Amazon EC2 fleet using on-demand NVIDIA A10G GPUs (Amazon EC2 G5 instances). Blender’s Cycles renderer uses the OptiX backend to accelerate ray tracing on the GPU. The job template assigns one task per frame, and the fleet can scale up to 10 workers as the queue grows and scale down when demand decreases. A persistent Blender adaptor keeps Blender running across frames on each worker, allowing one-time initialization costs, such as OptiX kernel compilation, to be reused rather than repeated for every frame.

Render Performance

The following table compares rendering the same 425-frame episode (about 14 seconds at 30 FPS) under warm and cold fleet conditions. A warm fleet has workers ready to render, while a cold fleet must first provision workers and initialize the rendering environment. The comparison highlights the impact of startup overhead on total rendering time. For this post, all experiments use the AWS us-west-2 Region and g5.xlarge instances, each equipped with 4 vCPUs, 16 GiB of memory, and one NVIDIA A10G GPU with 24 GB of GPU memory. Frames are rendered using Cycles at a resolution of 960 × 540 pixels, with up to 256 samples per pixel (adaptive sampling, noise threshold 0.01) and OpenImageDenoise denoising.

Metric Cold fleet (0 resident workers) Warm fleet (1 resident worker)
Rendering time (end-to-end pipeline) ~17 min ~9.6 min
GPU rendering time (Deadline job) ~12.0 min ~7.1 min
Worker spin-up before first frame ~2 min 10 s ~8 s

Cost per Episode

Rendering one 425-frame episode costs approximately $2.05, with GPU compute accounting for about 97% of the total. Costs scale primarily with GPU worker-hours, frame count, and resolution. Generating 100 episodes with 10 visual variants each (1,000 renders) would cost approximately $2,050 and require around 2,000 GPU-hours, or about eight days on the 10-worker fleet used in this post. Actual costs vary by AWS Region and instance type, so these figures are estimates.

Source Code

The complete implementation is available in the GitHub repository. You can use the repository to explore and deploy the solution in your own AWS environment.

Clean Up

To avoid ongoing charges, delete the resources created for this post:

  1. Stop rendering jobs. In the AWS Deadline Cloud console, cancel any running or queued jobs.
  2. Delete the rendering pipeline. From the CDK application directory, run npx cdk destroy RenderDispatchStack. This deletes the stack and its S3 buckets and DynamoDB table. Download anything you want to keep first.
  3. Delete Deadline Cloud resources. Remove the farm, queue, and fleet if created specifically for this post.

Conclusion and Next Steps

This pipeline separates robot behavior from visual data generation: a human demonstration is captured once, and the resulting robot trajectory can be rendered under diverse visual conditions without repeating the teleoperation process for every appearance. By combining VR-based demonstration capture, Blender-based reconstruction and randomization, and scalable AWS GPU rendering, the approach provides a foundation for generating Physical-AI datasets more efficiently.

To try the pipeline with your own robot and tasks, deploy the solution from the sample code and render a few of your own demonstrations. A follow-up post will cover packaging the rendered observations into a training-ready dataset, then training and evaluating visuomotor policies. To learn more about the rendering service, see the AWS Deadline Cloud User Guide.

Watch the 1-Minute Overview Video