ros2 / rviz

ROS 3D Robot Visualizer
BSD 3-Clause Clear License
297 stars 212 forks source link

capture video/image of rviz #1065

Open Nitinsn29 opened 1 year ago

Nitinsn29 commented 1 year ago

I'm currently working on a project that involves capturing video from an RViz instance in ROS2 Galactic. I have two potential approaches in mind, and I'm seeking guidance on which one to pursue or if there are alternative methods:

Connecting to RViz: Is there a recommended way to develop a ROS2 node to connect to a specific RViz instance and capture its video feed?

Accessing RViz's "File -> Save Image" Function: after connecting to a specific RViz, is it possible to access RViz's "File -> Save Image" functionality programmatically to capture images and then compile them into a video?

Creating a Custom Plugin: Should I create a custom RViz plugin to facilitate video capture directly within RViz?

I'd greatly appreciate any insights or recommendations regarding the best approach to achieve this video capture functionality within ROS2 Galactic. Thank you!

alalemp commented 5 months ago

Was looking for same thing. This guide: https://roboticsknowledgebase.com/wiki/tools/stream-rviz/ Relies on https://github.com/lucasw/rviz_camera_stream which is ROS1 specific. Despite 41 forks, have not found anyone that has ported the plugin to ROS2. And at moment can't squeeze the time to do so.