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

How can I save the RVIZ visualization to an image file

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

antoineniotna gravatar image

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

Hello,

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
1

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

lucasw gravatar image

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

edit flag offensive delete link more
0

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

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

Comments

1

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 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 4,302 times

Last updated: Aug 24 '18