Fix encapsulation on robot class