Inside the mechanical brain of the world's first robot citizen