How to get the robot trajectory plot in RViz2 by Slam toolbox
I am using slam_toolbox for mapping from Ros2 bag files. The slam toolbox generates the map exceptionally well. Also using the slam toolbox plugin or by using the commands given in the Git repo it is of course possible to generate the pose graph file to be used in localization mode afterward.
I am using Ros2 Galactic and the question is as follows:
Even though the map is generated by the Slam toolbox, the trajectory path (preferably with a line) is not shown in Rviz2 with Slam toolbox. However, instead of a line, the trajectory is shown with multiple dots which is not what I needed.
Is there a way to fix this issue and get the trajectory path n RViz2 with a line in the generating Map itself?