ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

How can I save the RVIZ visualization to an image file

asked 2018-07-10 09:32:18 -0600

antoineniotna gravatar image

updated 2018-08-24 10:07:26 -0600


I am publishing data trough different publisher, mainly with visualization_msgs::Marker and nav_msgs::GridCells objects. I get a visualization in my RVIZ window and what I want to do is to save this visualization into an image of the size I want.

Do you know if there is a plug-in who can do that ? Or if there is some other way to do that ?

I don't want to do a screen shot because i would like the size of my image to be bigger than the actual definition of my screen.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-08-24 13:26:37 -0600

lucasw gravatar image

Take a look at #q142351 and #q258251 - rviz_camera_stream should do what you want.

edit flag offensive delete link more

answered 2018-08-24 09:14:16 -0600

antoineniotna gravatar image

I didn't find any solution. What i am doing right now is just a screen shot but I use the option created by rviz for thaht to be easier. file -> Save image.

edit flag offensive delete link more



You're asking a lot of RVIZ to be fair. To achieve what you want it would have to create a new GL viewport of the resolution you're asking for and redraw the current scene into this custom viewport then save it to a file. You could potentially do it with a plugin but it's a lot of work.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-08-24 10:09:47 -0600 )edit

Question Tools

1 follower


Asked: 2018-07-10 09:32:18 -0600

Seen: 3,986 times

Last updated: Aug 24 '18