Robot side code