optimization of hip location for training patients of different heights using one gait generation mechanism