Abstract
For robots to work alongside humans and perform in unstructured environments, they must learn new motion skills and adapt them to unseen situations on the fly. This demands learning models that capture relevant motion patterns, while offering enough flexibility to adapt the encoded skills to new requirements, such as dynamic obstacle avoidance. We introduce a Riemannian manifold perspective on this problem, and propose to learn a Riemannian manifold from human demonstrations on which geodesics are natural motion skills. We realize this with a variational autoencoder (VAE) over the space of position and orientations of the robot end-effector. Geodesic motion skills let a robot plan movements from and to arbitrary points on the data manifold. They also provide a straightforward method to avoid obstacles by redefining the ambient metric in an online fashion. Moreover, geodesics naturally exploit the manifold resulting from multiple--mode tasks to design motions that were not explicitly demonstrated previously. We test our learning framework using a 7-DoF robotic manipulator, where the robot satisfactorily learns and reproduces realistic skills featuring elaborated motion patterns, avoids previously unseen obstacles, and generates novel movements in multiple-mode settings.
Introduction
Learning from Demonstration (LfD) is a cornerstone of intuitive robot programming, allowing machines to acquire complex skills by mimicking human behavior. However, traditional LfD methods often struggle with adaptability to new obstacles, handling multi-modal demonstrations (e.g., different paths to the same goal), and managing the complex geometry of full-pose constraints (3D position and orientation).
This paper proposes a novel framework that moves away from learning fixed trajectories. Instead, it learns the underlying geometry of a task by representing human demonstrations as a Riemannian manifold. In this paradigm, "natural" robot motions are generated as geodesics—the shortest paths on this learned curved surface.
Methodology
The VAE Architecture and Orientation Handling
The core of the approach is a Variational Autoencoder (VAE) that maps high-dimensional robot poses (Position $\mathbb{R}^3$ and Orientation $S^3$) into a low-dimensional latent space. To accurately model rotations, orientations are represented as unit quaternions. The authors address the antipodal symmetry of quaternions ($q$ and $-q$ representing the same rotation) by employing a mixture of von Mises-Fisher (vMF) distributions in the decoder, ensuring the model respects the spherical topology of the rotation space.
Inducing the Riemannian Metric
The "distance" in the latent space is not Euclidean; it is defined by a Riemannian metric derived from the Jacobian of the VAE's decoder. This metric incorporates the model's uncertainty:
- In regions dense with demonstration data, the metric makes "distances" short.
- In regions with high predictive variance (lack of data), the "distance" becomes effectively infinite. Consequently, a geodesic between two points naturally stays within the "style" and confidence bounds of the human demonstrations.
Obstacle Avoidance via Ambient Metrics
A significant advantage of this manifold perspective is how it handles obstacles. Rather than retraining the model, the authors modify the ambient metric of the workspace. By mathematically "stretching" the space around an obstacle, it becomes computationally "expensive" for a path to pass through it. The geodesic solver automatically finds a path that curves around the obstacle in real-time.
Experimental Evaluation
The framework was evaluated across three distinct scenarios:
- Synthetic Data: Visualizing how geodesics follow the curvature of "J-shaped" and "C-shaped" manifolds in position and orientation space.
- Real-World Grasping: Using a 7-DoF Franka Emika Panda robot, the system learned a side-grasp requiring a specific 90-degree rotation from kinesthetic demonstrations.
- Simulated Pouring: A multi-modal task where a robot picks one of three cans to pour into one of three cups. The model learned a single manifold connecting all start and end points, enabling the generation of "hybrid" motions never explicitly demonstrated.
Key Results and Insights
- Zero-Shot Adaptation: The robot avoids moving obstacles in real-time (100Hz performance) without retraining, simply by warping the metric.
- Uncertainty-Aware Planning: By incorporating VAE variance into the metric, the robot inherently avoids unfamiliar states, staying "on-manifold."
- Multi-modal Synergy: The system can transition between different demonstration modes seamlessly, exploiting the learned manifold to find novel, valid solutions for complex tasks.
Conclusion and Future Work
This work demonstrates that treating robot skills as learned Riemannian manifolds provides a robust and flexible foundation for motion planning. While currently limited by the computational cost of high-dimensional latent space searches and focusing primarily on end-effector planning, future iterations could extend these principles to whole-body control and more complex, high-dimensional task spaces.
Summary updated