Legged robots are a type of mobile robot which use mechanical limbs for movement. They are more versatile than wheeled…