added var method for retrieving robot variables.