How is a robotics engineer different from a mechanical engineer?

While both engineers work with machines, robotics engineers specialize in designing and building automated robots, while mechanical engineers focus on mechanical systems and devices.