Balance-Consistent View Warping for Legged Robot Demonstrations

When a legged robot with an arm lifts a heavy object, it has to lean its body to stay upright. Its main camera is bolted to that body, so the lean also moves what the camera sees. Current ways of multiplying robot training data ignore this. They either render new trajectories as if the robot were bolted to a table, or they jitter camera views at random. We propose making synthetic demonstrations for legged manipulators obey the robot's balance. For each augmented trajectory, a fast balance planner computes the body pose the robot would actually hold. The robot's own real camera frames are then re-projected to that pose by pixel warping, which relocates existing pixels rather than generating new ones. The result is photoreal training images whose viewpoint shifts are exactly those that balance would produce at deployment.

This joins two lines of work that have not met. Static stability maintenance keeps the robot from tipping. It does this by keeping the center of mass (the average position of the robot's mass) projected inside the support polygon (the region enclosed by the feet on the ground). Pixel-warping synthesis builds new images by predicting, for every output pixel, where to sample it from a real source image. The question we test is narrow. Does a vision policy for a floating-base robot generalize better to unseen payloads and object placements when its augmented views are balance-consistent, rather than kinematically plausible or randomly perturbed?

Core Claim

On a legged manipulator, the pose of the body-mounted camera is not a free variable. It is determined by the balance solution, which depends on payload mass, reach, and contact forces. Real2Render2Real shows that kinematics-only rendering can match 150 real teleoperated demonstrations within a ±5% margin. That result comes from a fixed-base ABB YuMi, whose support is effectively unbounded, so balance never enters. STORMMAP shows the opposite regime. An ANYmal with a Kinova arm must lean its body in anticipation of a 3 kg payload, or it tips.

We claim that augmentation for floating-base robots has to reproduce this coupling. The viewpoint shift and the relabeled actions should both follow from the planner's body trajectory. We also claim that small, balance-induced viewpoint changes fall in the regime where warping real frames beats both generative models and reconstructed scene renders on cost at comparable fidelity. This follows from the failure modes the pixel-warping literature documents. Warping degrades mainly under large rotations: Generative Blocks World reports breakdown beyond roughly 50° of object rotation. It also degrades under large non-rigid strain, which is why PhysAnimator abandoned direct pixel warping. A balance lean is a small rigid camera motion, far from both.

The claim contradicts Real2Render2Real's conclusion that dynamics can be skipped. We treat that paper's fixed-base setting as a control in which we predict no benefit, rather than as a result we dispute.

Research Program

Pipeline. The system starts from a modest set of real teleoperated episodes on a quadruped with an arm, recorded with a body-mounted RGB-D camera and the robot's joint and body state. Each episode is augmented in two ways. We vary the task parameters, namely payload mass, object placement, and manipulation wrench, and we re-solve the end-effector path using differential inverse kinematics, as in Real2Render2Real.

Balance re-solve. Unlike that pipeline, we then re-run a STORMMAP-style receding-horizon planner on the new path. The planner optimizes body center-of-mass splines and end-effector forces under a zero-moment-point constraint (the ground point where tipping moments vanish must stay inside the support polygon) and friction limits. It reports solve times under 1 ms for stationary tasks, so this step costs almost nothing. STORMMAP requires pre-specified foot contacts, so we keep the recorded footholds fixed and vary only what happens above them. This limitation is inherited, not solved.

Scene warp. The planner's body pose $T_{\text{base}}(t)$ gives the new camera pose $T_{\text{cam}}(t) = T_{\text{base}}(t)\,T_{\text{mount}}$, where $T_{\text{mount}}$ is the fixed camera-to-body calibration. Background pixels are produced by backward warping, which samples each target pixel from its source location as emphasized by Pahwa et al.. To do this, the source depth is forward-projected to obtain target depth. Each target pixel $p$ is then sampled from source coordinate

$$p_{\text{src}} = \pi\!\left(T_{\text{src}}^{-1}\,T_{\text{cam}}(t)\,\pi^{-1}(p, D_t(p))\right),$$

where $\pi$ is camera projection, $\pi^{-1}$ back-projects a pixel at depth $D_t(p)$, and $T_{\text{src}}$ is the recorded camera pose.

Disocclusions. Regions the recorded camera never saw are filled by inpainting sampling coordinates rather than colors, following Coordinate-Based Texture Inpainting. That paper shows coordinate inpainting keeps real textures sharp where color inpainting smears them.

Robot pixels. The robot's own arm, visible in the frame, moves differently under the new trajectory. Its geometry and link poses are known exactly, so each link is warped rigidly from its recorded appearance. This piecewise-rigid flow is supervised by known geometry rather than learned. It follows the argument of Dense Intrinsic Appearance Flow that a 3D body model should drive 2D flow, but with a mechanical body whose geometry is exact instead of a fitted human mesh.

Action relabeling. Actions expressed in the body or camera frame are relabeled using the new body pose, so each observation and its action stay consistent.

Analysis before policy training. First we quantify how large balance-induced viewpoint shifts actually are across payloads and reaches, in pixels of image motion. Then we measure warping fidelity against real frames recorded under the same altered conditions.

Baselines

No augmentation. The naive reference point is an imitation policy trained only on the real episodes. It sets the floor for generalization to unseen payloads and placements.

Kinematics-only augmentation. This is the direct transfer of Real2Render2Real to our robot. It uses the same inverse-kinematics trajectory variations, but the body is held at its recorded pose, so no lean is applied. Its strength is established: on fixed-base tasks it showed no significant difference within a ±5% margin from 150 real demonstrations, at 27 times the collection speed. We run it on exactly the same source episodes, warping pipeline, and number of synthetic frames as our method. The only difference is that it skips the balance re-solve.

Magnitude-matched random jitter. This ablation isolates the key ingredient. Camera perturbations are drawn to match the per-frame distribution of our balance-induced shifts, but they are decorrelated from payload and reach. It is the strongest cheap competitor. If it matches our method, the benefit came from viewpoint diversity, not from balance.

Balance-consistent 3D Gaussian Splatting render. 3D Gaussian Splatting reconstructs a scene as a cloud of textured blobs that can be rendered from new viewpoints. This baseline feeds the same planner trajectories to a per-scene reconstruction and rendering pipeline, as Real2Render2Real does. It tests whether warping is needed at all or only cheaper.

Fairness. All policies share architecture, training steps, tuning budget, and number of seeds.

What counts as winning. Beating a baseline means higher success on held-out payload masses and placements, by more than seed-to-seed variance under a paired test. For the render baseline, it means matching its success within an equivalence margin at lower generation cost.

Absolute numbers. No reported result was found on Lacuna for vision-policy augmentation on legged mobile manipulators. The closest force-aware reference, Learning a Unified Policy for Position and Force Control in Legged Loco-Manipulation, reports roughly 39.5% higher success than vision-only baselines on contact-rich tasks but no absolute rates in our file. Its tasks and force-aware controller are therefore reused as a setting, not as a numeric target.

Why not just…?

Why not just randomize camera pose and skip the planner? Domain randomization is cheaper and might supply all the needed robustness. Nothing in the file settles this, and it is the most serious threat. The magnitude-matched jitter ablation decides it. If jitter equals balance-consistent warping on unseen payloads, we will report that the coupling does not matter at this scale. We expect a gap specifically on heavy payloads and far reaches, where lean is largest and systematically correlated with the task.

Why not just render balance-consistent trajectories with Gaussian Splatting, as Real2Render2Real does? This may match our fidelity, since the viewpoint changes are small. The render baseline is included precisely to measure that. Our argument is cost and realism, not an assumed quality win. Warping reuses the robot's own real frames, including lighting and clutter, and needs no per-scene reconstruction. Generative Blocks World shows the benefit of pixel-warped hints under camera moves: 18.7 PSNR versus LooseControl's 6.65. If the Gaussian Splatting renders train equally good policies at similar cost, warping is merely an implementation choice. The balance-consistency claim would still stand.

Why not just use a full physics simulator with rendering? A simulator gives balance for free. But the policy then trains on simulated visuals, and the file notes the appearance gap that motivated Real2Render2Real in the first place. We include a simulator-rendered condition only in the controlled simulation study. Its purpose there is to separate the effect of balance from the effect of visual realism.

Why not just train a video diffusion model to generate the demonstrations? Diffusion generators lose object identity and fine texture across frames. PhysAnimator documents "identity melting" in pure diffusion baselines, and generation latency is orders of magnitude above a millisecond-scale planner. We do not run this as a main baseline. Its failure mode is already documented, and it would not isolate the balance question.

Proposed Experiments

Magnitude check. The first decisive check is whether the idea is worth pursuing at all. In Gazebo, with an ANYmal and Kinova arm as in STORMMAP, we sweep payloads from 0 to beyond 3 kg and reaches across the arm's workspace. We record the planner's body lean and the resulting image-space motion at the body camera. If lean-induced motion is under a few pixels for realistic tasks, the proposal reduces to a negative finding and stops there.

Fidelity check. We record real or simulated episode pairs that differ only in payload. Frames from the light-payload episode are warped to the heavy-payload episode's planned camera poses. We score them against the true heavy-payload frames with PSNR, SSIM, and LPIPS (a learned perceptual distance), comparing against no-lean warping and against Gaussian Splatting renders. The balance-consistent warp should be closest to ground truth, and no-lean warping should visibly misplace the scene.

Policy study, simulation. Imitation policies are trained from each augmentation condition on payload-lifting tasks and on the cabinet- and drawer-opening tasks from the unified position-force work. We evaluate on held-out masses and placements, reporting task success and tip or fall rate.

Policy study, real robot. The same comparison is repeated on hardware with a reduced grid.

Fixed-base control. Every condition is also run with the base locked. Here we predict no gap between kinematics-only and balance-consistent augmentation, consistent with Real2Render2Real.

Reading the results. A clear gain on the floating base, together with no gain on the fixed base and no gain from matched jitter, would establish that balance, not viewpoint diversity, is what synthetic data for legged manipulators has been missing.