Saving a map with everything plotted on it directly from RViz
Hi,
Can anybody help here ? I want to visualize some topics like pose, path and goal positions that are already being published. But I want to use an image (map opencv image) to plot on it, I just can't get the right transformations to go from the world -> ROS map -> opencv image frames.
In other words, I want to save the map and anything that is being plotted on it (in RViz) as a figure. i want to know if there's a way for me to save the map, the magenta path and the red path all in one figure without subscribing into each topic and transforming each topic so that it can be plotted on the map file (e.g. mymap.pgm).
Hi @seif_seghiri a couple clarifying questions. Are you trying to this from a fix camera angle in RViz? Also can you explain how you are getting the image that you called
map opencv image
? Perhaps post a picture.Hi Osilva, Thank you so much for the reply. please check the updated question
Hi @seif_seghiri, please take a look at this solution of streaming RVIZ visualizations as images: https://roboticsknowledgebase.com/wik.... The package
rviz_camera_stream
was developed by @lucasw, it's pretty cool: https://github.com/lucasw/rviz_camera...If this is what you are looking for, then we can add as an answer.