Mech-GPT: Enabling Robots to Understand Linguistic Instructions and Handle Complex Tasks