How to save the map as jpg format
Now ROS saves the robot map as pgm format, but I want to save the map as jpg format, I konw I could use the opencv to convert the "pgm map" to the "jpg map", but if I could save the map as jpg format in the map_saver code directly, it would be better. However, I know little about picture format and it's difficult for me to write the code by myself.
Thank you very much!