added a publisher to notify trajectory recorder when the animation is finished