Skip to content

E Rosbag

Ernő Horváth edited this page May 4, 2022 · 4 revisions

How to open rosbag files

The log data is in .bag format, the standard logging format for ROS. To simply view and play the data Foxglove Studio is the easiest solution. It works on Windows, Linux and Mac. Another popular option is MATLAB. The data can be imported, viewed and edited in MATLAB. If you are familiar with ROS C++ or python can be a good option too. Python also offers possibilities top open the rosbags without ROS, similarly to MATLAB. The postprocessed 3D pointcloud data is in .pcd (Point Cloud Data) file format, it is a common format used inside Point Cloud Library (PCL). Also pcd can be imported easily to MATLAB / python.

Here are some example rosbags: https://github.com/szenergy/szenergy-utility-programs/tree/master/bag_scripts

img1

MATLAB

C++

Python

Foxglove Studio

How to view rosbag data without install?

Download rosbag

Go to https://jkk-research.github.io/#dataset download a .bag and a .json foxglove layout.

Go to https://foxglove.dev and try the online studio or download the app fron Windows / Linux / Mac.

Load the .bag with Open local file button.

Go to the second icon (layout) and open the .json file

Press play and play aroud the data.

https://www.youtube.com/shorts/7p68zytG10Q

Plotjuggler

Clone this wiki locally