Saving a map with everything plotted on it directly from RViz

asked 2022-01-25 01:44:49 -0500

updated 2022-03-25 17:26:31 -0500

lucasw gravatar image

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. image description 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).

edit retag flag offensive close merge delete

Comments

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.

osilva gravatar image osilva  ( 2022-01-25 07:59:02 -0500 )edit

Hi Osilva, Thank you so much for the reply. please check the updated question

seif_seghiri gravatar image seif_seghiri  ( 2022-01-26 07:21:43 -0500 )edit

Hi @seif_seghiri, please take a look at this solution of streaming RVIZ visualizations as images: https://roboticsknowledgebase.com/wik.... The package rviz_camera_streamwas 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.

osilva gravatar image osilva  ( 2022-01-26 07:42:02 -0500 )edit