Set duration of animation frames based on times in trajectory message