https://123dok.org/document/nq77v7kq-primitive-based-hierarchical-planning-for-humanoid-robots.html