trajectory_manager: new functions trajectory_is_ended and trajectory_end
trajectory_manager: points can be added at the beginning of the trajectory
trajectory_manager: new functions pause and resume