Construction of a pedestrian model for the control of automatic door