Whole-body End-Effector Pose Tracking

Tifanny Portela, Andrei Cramariuc, Mayank Mittal, Marco Hutter

TL;DR

This paper introduces a whole-body reinforcement learning (RL) controller that enables legged robots with attached arms to precisely track 6-DoF end-effector pose commands across a large workspace and challenging terrains like stairs and slopes. By utilizing a novel keypoint-based pose representation and a terrain-aware command sampling strategy, the system achieves an impressive real-world tracking accuracy of 2.64 cm and 3.64° on stairs, outperforming traditional model-based and learning-based baselines.

What Problem Does This Paper Address?

Integrating a robotic arm onto a mobile legged platform (a legged manipulator) opens up incredible possibilities for real-world deployment, from industrial inspection to disaster response. However, controlling these systems is notoriously difficult due to their high degrees of freedom, kinematic redundancy, and highly non-linear dynamics.

Traditional model-based approaches like Model Predictive Control (MPC) deliver precise tracking on flat ground but rely on simplified models that struggle to handle unexpected disturbances, slips, or complex terrains in real time. Conversely, recent Reinforcement Learning (RL) methods offer robustness but typically cut corners—either by restricting the arm's workspace to a small area directly in front of the robot or by tracking only 3D position while ignoring orientation. This paper tackles the challenge of achieving full 6-DoF pose (position and orientation) tracking across a massive operational workspace on rough, unstructured terrains.

Methods

The authors developed a whole-body RL controller using Proximal Policy Optimization (PPO). The core innovations that make this system work where others fail include:

  1. Keypoint-Based Pose Representation: Instead of splitting the end-effector command into separate position (3D vector) and orientation (quaternions or Euler angles) components, the authors represent the pose using three keypoints that form the vertices of a virtual cube centered on the end-effector. This unifies position and orientation into a single coordinate space.
  2. Terrain-Aware Command Sampling: To train the policy effectively, the authors pre-sampled 10,000 collision-free arm configurations. During training, these are expanded using random body pose transformations ($T^\Delta_b$) to encourage the robot to use its entire body (legs included) to reach distant targets. A coarse terrain height map is used to filter out commands that would accidentally plunge the arm into the ground (e.g., when standing on stairs).
  3. Locomotion-Informed Initialization: To ensure a smooth transition between moving around and manipulating objects, the robot's initial configurations during training are sampled directly from a pre-trained locomotion policy.

The overall data collection and training pipeline is illustrated below:

Fig. 2: The training process begins with data collection, where we gather (A) the terrain mesh and a coarse terrain height map, (B) 10000 pre-sampled end-effector pose commands with a fixed base, and (C) base poses and joint angles from a pre-trained locomotion policy to initialize robots. During training, a command from (B) is slightly transformed and checked for collisions with the terrain. If collision-free, it is concatenated with observations and input to the policy; otherwise, a new command is sampled. The policy is trained in simulation with 4000 robots in parallel, outputting joint actions.

Datasets

The paper does not use standard external datasets. Instead, the authors generated a custom dataset consisting of 10,000 pre-sampled collision-free end-effector poses tailored to their specific hardware embodiment: the ANYmal D quadruped equipped with a 6-DoF Dynaarm (collectively known as ALMA).

The distribution of this expanded workspace is visualized below:

Front and side views of the expanded workspace on flat ground and stairs.

Key Insights and Ideas

  • The Power of Unified Representations: Separating position and orientation rewards usually requires tedious hyperparameter tuning. If the weights aren't perfectly balanced, the RL policy training often collapses, prioritizing one over the other. The keypoint representation solves this by turning orientation errors into simple distance metrics, making the reward function significantly easier to learn.
  • Exploiting Whole-Body Redundancy: Instead of keeping the base rigid, the terrain-aware sampling forces the quadruped base to actively lean, squat, or shift its weight to help the arm reach challenging poses, effectively expanding the arm's natural workspace.
  • Delayed Rewards Prevent Dangerous Paths: The tracking reward is only active during the last two seconds of a four-second command cycle. This clever delay prevents the RL policy from taking reckless shortcuts (like swinging the arm straight through the robot's own body) just to get to the target faster.

Key Results

The system was validated both in simulation and on real hardware, demonstrating exceptional sim-to-real transfer:

  • Representation Comparison: In simulation, the keypoint-based representation significantly outperformed quaternion, Euler angle, and 6D vector alternatives, reducing tracking errors by over 16 cm compared to the next best method.
  • Hardware Performance: When deployed on the real ANYmal robot, the controller achieved a pose-tracking error of just 2.03 cm / 2.86° on flat terrain and 2.64 cm / 3.64° on stairs.
  • Comparison to MPC: While a baseline model-based MPC performed similarly in terms of median error, its mean error was much higher (6.43 cm / 6.88°) because it frequently got stuck in local minima trying to balance collision avoidance with tracking. The RL policy smoothly navigated around these self-collision boundaries.
  • Robustness to Unmodeled Payloads: Without any explicit mass modeling, the controller successfully handled payloads up to 3.75 kg while stationary and 1.3 kg while moving.
Fig. 1: Our whole-body controller demonstrates precise end- effector pose tracking across a variety of challenging terrains, including soft mattresses, stairs and uneven natural ground.

Limitations and Future Work

While the controller excels at tracking poses from a stationary base, it does not include simultaneous locomotion capabilities. Instead, it is designed to alternate with a standalone locomotion policy.

Additionally, when payloads exceed the training distribution (above 2.0 kg during motion), tracking performance begins to degrade significantly.

Future Directions: * Integrating 3D environmental perception (like point clouds or elevation maps) directly into the policy for self-learned, reactive obstacle and collision avoidance. * Incorporating memory networks (e.g., LSTMs) or concurrent state estimators to dynamically adapt to heavy, unmodeled payloads during manipulation.

Summary updated

BibTeX
@inproceedings{portela2025whole,
  author = {Tifanny Portela and Andrei Cramariuc and Mayank Mittal and Marco Hutter},
  title = {{Whole-body End-Effector Pose Tracking}},
  booktitle = {RoboLetics @ ICRA},
  year = {2025},
  url = {https://openreview.net/forum?id=9LODvwGBtl},
}
Figure