Ask Your Question

Tools for rosbag analysis - Others that are used?

asked 2013-10-16 06:08:34 -0600

eacousineau gravatar image

updated 2013-10-16 06:16:54 -0600

What tools have people developed and use for rosbag analysis?

I know of rqt_bag (which is an absolutely awesome tool), which allows you to browse the topics in a concise timeline, and using that in conjunction with rqt_plot to plot data. However, it's still a little cumbersome to extract data for more detailed analysis.

I've created a small package using numpy that will parse a rosbag given a set of topic paths (consisting of fields and optionally indices, much like extracting data for plotting) and return simple multi-variable data sets for ease of plotting and analysis, which includes interpolating data sets so that they are on a time scale (with the same spacing). This allows basic errors to be computed. If you also published the same data, you can use this to potentially see delays between the different publishers. You can always run the conversion, then save the final datasets to Matlab to plot and examine as well. Really easy to do in Spyder.

Will upload the package in a bit.

EDIT: Googled and saw Pandas from this presentation: Looks interesting, will start looking at this.

edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted

answered 2014-06-13 13:33:24 -0600

aktaylor08 gravatar image

If you are interested in using pandas. I have a simple somewhat inefficient python package to get a bag file into a pandas dataframe indexed by the bag record time.

edit flag offensive delete link more


Thanks! I'll check that out.

eacousineau gravatar image eacousineau  ( 2014-06-18 06:13:13 -0600 )edit

This is awesome. To get a dataframe with a common time index (no interleaved data) use this on top of ros_pandas:

xaedes gravatar image xaedes  ( 2014-09-19 18:32:43 -0600 )edit

answered 2013-10-16 06:45:37 -0600

I think you bring up a good point that there isn't really a centralized place to find out about working with recorded data. There are of course the wiki pages for rqt_bag/rqt_plot/rosbag, but those are specific to those tools. For example, I needed to export video from a bag and the relevant wiki page wasn't sufficient, so I had to write my own tool to export variable framerate video ( I bet somebody else has already done this, but couldn't find anything. Countless times, I've also had to write one-off scripts to export data as mat files.

Anyway, a wiki page with a more comprehensive list of tools for working with recorded data could be very useful.

edit flag offensive delete link more

answered 2019-01-29 01:18:54 -0600

lii55a gravatar image

If commercial tools are an option, then this unstructured analytics tool SpectX can parse and analyse .bag files quickly and at a large scale. No import required before starting to analyse data. Overview: Documentation:

edit flag offensive delete link more

answered 2020-12-01 12:05:52 -0600

iiton gravatar image

SpectX is now Freemium. With free version you can still query your bags. Only the cpu usage is limited to 4 CPU cores.

How to get quick answers from bags:

Free download for Windows / Mac or Linux:

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2013-10-16 06:08:34 -0600

Seen: 3,659 times

Last updated: Jun 13 '14