hello you could use another package named hector_trajectory_server. You could also find many information in hector_slam