Dynamic control of a moving platform using the CAREN system to optimize walking