Geometric and Algebraic Structure in Robot Learning