Created constructor with init function, in robotModel.