Robot Control based on Motor Primitives -- A Comparison of Two Approaches