build To Composite
Builds the trajectory, creating a new CancelableTrajectory object for each discontinuity, and then composes them into a single CompositeTrajectory object. There may be complete stops in this composite based on where its components start and end.
Return
the resulting CompositeTrajectory object