ROS Bag Viewer
Visualize messages in ROS or ROS 2 bag file
The ROS Bag Viewer app enables you to visualize messages in a ROS or ROS 2 bag file. You can create multiple viewers within the app and visualize different ROS or ROS 2 messages simultaneously.
You can open the following viewers using the app, which support the given message types in the table.
Types of Viewer
|Point Cloud Viewer
|Laser Scan Viewer
|XY Plot Viewer
|Time Plot Viewer
For each viewer, you can filter the supported messages in the bag file for visualization. You can fast forward, and rewind based on the message timestamp or elapsed time while playing the bag file. You can also pause, and play the bag frame-by-frame. The app also displays information about the bag file contents after loading the bag file. You can also save a snapshot of the visualization window at any particular instance of time.
Open the ROS Bag Viewer App
MATLAB® Toolstrip: On the Apps tab, under Robotics and Autonomous Systems, click the app icon .
MATLAB command prompt: Enter
rosbagViewer opens the ROS Bag Viewer app, which enables
you to visualize messages in a ROS or ROS 2 bag file.
Version HistoryIntroduced in R2023a
R2023b: Enable visualizing ROS 2 bag files and 3-D odometry plots, adding bookmarks, and saving and importing sessions
You can now use the ROS Bag Viewer app to visualize ROS 2 Bag files and add
3-D odometry plots to visualize
nav_msgs/Odometry messages. You can also
add bookmarks while visualizing bag file data.
The app now automatically saves the visualization session including the plots and bookmarks for a ROS or ROS 2 bag file, when you close the app or load a new bag file. It restores the data when you load the same bag file again.