Structure-Constrained Motion Sequence Generation