Arc-Length-Based Warping for Robot Skill Synthesis from Multiple Demonstrations
Giovanni Braglia, Davide Tebaldi, André Eugenio Lazzaretti, Luigi Biagiotti
TL;DR
The paper tackles temporal distortions in Learning from Demonstration by introducing Spatial Sampling (SS), a method that computes arc-length parametrizations of robot trajectories to achieve time-independent alignment. It extends SS to handle multiple demonstrations, provides a principled Δ selection procedure based on Hausdorff distance to control approximation accuracy, and analyzes computational cost. Through experiments on LASA handwriting data and a custom geometric dataset, SS demonstrates improved trajectory alignment and barycenter quality, often outperforming DTW-based baselines, especially when integrated with GMR or DTAN. The approach offers a robust, interpretable, and scalable alternative for skill synthesis from demonstrations and is accompanied by an open-source dataset for the community.
Abstract
In robotics, Learning from Demonstration (LfD) aims to transfer skills to robots by using multiple demonstrations of the same task. These demonstrations are recorded and processed to extract a consistent skill representation. This process typically requires temporal alignment through techniques such as Dynamic Time Warping (DTW). In this paper, we consider a novel algorithm, named Spatial Sampling (SS), specifically designed for robot trajectories, that enables time-independent alignment of the trajectories by providing an arc-length parametrization of the signals. This approach eliminates the need for temporal alignment, enhancing the accuracy and robustness of skill representation, especially when recorded movements are subject to intermittent motions or extremely variable speeds, a common characteristic of operations based on kinesthetic teaching, where the operator may encounter difficulties in guiding the end-effector smoothly. To prove this, we built a custom publicly available dataset of robot recordings to test real-world movements, where the user tracks the same geometric path multiple times, with motion laws that vary greatly and are subject to starting and stopping. The SS demonstrates better performances against state-of-the-art algorithms in terms of (i) trajectory synchronization and (ii) quality of the extracted skill.
