Split trajectories into variables fit for the trajectory message