A method of controlling a gait device includes a first sensor disposed on a first mobile body. A physical state of the first mobile body is measured using the first sensor to obtain a first physical state measurement. A second sensor is disposed on a second mobile body. A physical state of the second mobile body is measured using the second sensor to obtain a second physical state measurement. The first and second physical state measurements are conditioned by pseudo integration. A reference function is based on a gait activity. A reference function is determined by measuring a physical state of an able-bodied human and correlating an output position of the actuator to the physical state of the able-bodied human. A command is generated by inputting the first and second physical state measurements into the reference function to control an actuator of the gait device to match the output position.