Motion and Action Primitives for The NAO Humanoid Robot