set COG-Z to enable to generate up-down walking