A modified gait generator for humanoid robots based on height compensation of center of mass