Abstract
Learning complex, non-linear motions from human demonstrations remains a challenge in robotics, particularly when balancing trajectory accuracy with global stability guarantees. This paper introduces Contracting Dynamical System Primitives (CDSP), an algorithm that leverages partial contraction analysis to ensure robots reach their goals while following intricate, non-monotonic paths. By learning a state-dependent metric alongside motion parameters, CDSP provides a flexible yet mathematically rigorous framework for Robot Learning from Demonstration (LfD).
Introduction
In LfD, representing motions as Dynamical Systems (DS) allows robots to be inherently reactive to environmental changes. However, existing methods often face a trade-off between stability and complexity. Simple stable models, like those using Lyapunov functions, often struggle to capture "curvy" paths where the robot must temporarily move away from the goal. Conversely, highly flexible models may lack guarantees of global convergence, risking loops or divergence when perturbed. CDSP bridges this gap by ensuring global stability without sacrificing the ability to learn complex shapes.
Methodology
CDSP models motion dynamics using a Gaussian Mixture Model (GMM) constrained by partial contraction analysis. Unlike standard Lyapunov stability, which focuses on distance to a point, contraction analysis examines how neighboring trajectories converge toward each other. "Partial" contraction specifically ensures all trajectories converge toward a designated equilibrium point.
A critical innovation in CDSP is the use of a state-dependent metric, $M(x)$. By allowing the metric to vary based on the robot's position, the algorithm can warp the "allowable" direction of travel. This enables the robot to follow complex paths, such as U-turns or spirals, while remaining mathematically stable. The parameters for this metric are learned directly from demonstration data using an optimization process inspired by Sum of Squares (SOS) relaxation, which converts infinite stability constraints into a solvable finite set.
Evaluation and Results
The algorithm was evaluated on the LASA Handwriting Dataset and real-world kinesthetic demonstrations with a 7-DOF Baxter robot. CDSP was compared against state-of-the-art baselines, including Dynamic Movement Primitives (DMP) and CLF-DM.
Key findings include:
- Accuracy: CDSP achieved significantly lower reproduction errors, measured by Swept Error Area (SEA) and Dynamic Time Warping (DTW) distance, particularly on complex shapes like "DoubleBendedLine" and "Leaf."
- Robustness: The system demonstrated superior handling of spatial perturbations and moving targets. While baselines like DMP occasionally overshot targets or produced erratic paths during recovery, CDSP trajectories converged smoothly to the goal.
- Real-World Applicability: Experiments on the Baxter robot confirmed that CDSP can effectively learn from noisy, human-provided demonstrations and maintain stability in physical environments.
Discussion and Conclusion
The success of CDSP highlights that stability does not necessitate a straight-line path to the goal. By reshaping the robot's perception of the state space through a learned metric, complex behaviors can be made globally stable. While the current implementation involves significant computational overhead during the optimization phase, it provides a robust foundation for reactive robot control. Future work will explore extending this framework to periodic motions and optimizing the learning process for higher-dimensional state spaces.
Summary updated