Bringing geometric methods to robot learning, optimization and control