fsm for robot extended. new section for scanning item introduced.