You’re right. Robby the Robot was in the film Forbidden Planet.
The robot in Lost In Space was actually Robot B-9, Class M-3 General Utility Non-Theorizing Environmental Control Robot.
But everyone just called him Robot.
Which used to be pronounced “Roe-bit”
But lest we all forget, Robby did make a guest appearance on Lost in Space season 1, episode 20, "War of the Robots".
I had a viewmaster disk set of that featured Robbie fighting Robot, in color, no less!