How is a robot sent into space?

On a rocket.