Saving map with the path into map.pgm
I want to save the mapping path of the robot as it maps, by first visualizing the path on Rviz and then saving the poses into an array. I am planning to have the robot use this mapping path again and want to validate it.
Therefore I am wondering if it is possible to save the mapping path visualized in Rviz, together with the map itself into map.pgm. This is purely for validation purposes so that I can compare the path seen in Rviz with the path in the map.pgm file uploaded.