In this paper, an innovative algorithm for averaging a set of multivariate time series with different lengths based on Constrained Dynamic Time Warping (CDTW) is proposed. This approach relies on the CDTW to provide the non-linear alignment of the multivariate time series, and employs the proposed Minimum Cost Averaging (MCA) technique to identify the optimum matches and get equal-length time series. MCA-CDTW is a task-agnostic approach that after selecting a reference curve, transforms the rest of the demonstrations in the set to obtain new curves that are time-aligned with the reference. From these transformed curves, not only the mean but also the signal variability can be directly extracted. This technique provides smooth mean curves even when there are large deviations between the demonstrations in the set, and still the complexity of the proposed algorithm is significantly reduced compared to other averaging techniques from the literature. When learning techniques are used to teach a motion to a robotic system, obtaining smooth trajectories is important to achieve good robotic behaviors. The new algorithm MCA-CDTW is tested and compared on two different databases: a literature database where humans move a robotic arm with kinaesthetic teaching, and a set of recordings of a teleoperated robotic arm performing laboratory manipulation. On both datasets, it is demonstrated that the new approach is providing smooth average trajectories.
This study aims to evaluate different combinations of features and algorithms to be used in the control of a prosthetic hand wherein both the configuration of the fingers and the gripping forces can be controlled. This requires identifying machine learning algorithms and feature sets to detect both intended force variation and hand gestures in EMG signals recorded from upper-limb amputees. However, despite the decades of research into pattern recognition techniques, each new problem requires researchers to find a suitable classification algorithm, as there is no such thing as a universal ’best’ solution. Consideration of different techniques and data representation represents a fundamental practice in order to achieve maximally effective results. To this end, we employ a publicly-available database recorded from amputees to evaluate different combinations of features and classifiers. Analysis of data from 9 different individuals shows that both for classic features and for time-dependent power spectrum descriptors (TD-PSD) the proposed logarithmically scaled version of the current window plus previous window achieves the highest classification accuracy. Using linear discriminant analysis (LDA) as a classifier and applying a majority-voting strategy to stabilize the individual window classification, we obtain 88% accuracy with classic features and 89% with TD-PSD features.
Generating robot behaviors in dynamic real-world situations generally requires the programming of multiple, often redundant degrees of freedom to meet multiple goals governing the desired motions. In this work, we propose a constraint-based controller specification methodology. A novel declarative language is used to combine semantically specialized building blocks into composite controllers. This description is automatically transformed at runtime into an executable form, which can automatically leverage multiple threads to parallelize computations whenever possible. Enabling runtime definition of controller topologies out of declarative descriptions not only reduces the work required to develop such controllers, but it also allows one to dynamically synthesize new controllers based on higher-level task planners or by user interaction through Graphical User Interfaces (GUIs). Our solution adds new functionality to the Robot Operating System (ROS)/ros_control ecosystem, where robot behaviors are typically achieved by deploying single-objective, off-the-shelf controllers for tasks like following joint trajectories, executing interpolated point-to-point motions in Cartesian space, or for basic compliant behaviors. Our proposed constraint-based framework enhances ros_control by providing the means to easily construct composite controllers from existing primary elements using our design language. Building on top of the ros_control infrastructure facilitates the usage of our controller with a wide range of supported robots and enables quick integration with the existing ROS ecosystem.