Add a function to convert a PathVector into ros JointTrajectory.