A Segmented Motion Synthesis Method for Robotic Task-Oriented Locomotion Imitation System