Long-horizon Locomotion and Manipulation on a Quadrupedal Robot with Large Language Models