ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
0

Is there a way to extract rosbag files without using ros packages

asked 2018-03-30 15:51:04 -0500

roswell anyoha gravatar image

updated 2018-03-31 04:30:59 -0500

gvdhoorn gravatar image

While ROS is useful, t's very annoying to install. I'm trying to make an extraction pipeline that is user friendly and can be used across multiple platforms and ros packages just get in the way. All I want to do is extract videos. Has anyone created a script (preferably in python or matlab), to easily extract rosbag files?

edit retag flag offensive close merge delete

Comments

I doubt it. The ROS bag format is complex and the only libraries I'm aware of that can read it are the ones provided by ROS.

ahendrix gravatar imageahendrix ( 2018-03-30 20:08:16 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-03-31 03:37:57 -0500

gvdhoorn gravatar image

updated 2018-03-31 04:31:40 -0500

You could see whether swri-robotics/bag-reader-java has some useful parts.

I must agree with @ahendrix though: in general bags are really only fully useful with ROS in the mix, but for just extracting image data you should be able to get by with the implementation I linked above. Note that this will just get you the data. Decoding it will be on you.


Edit: opinionated bits below, feel free to ignore.

While ROS is useful, t's very annoying to install.

This is rather subjective, but I have a bit of a hard time agreeing with this (especially the very part). ros-core is less than 50 MB iirc (total size of pkgs) and has a relatively limited set of dependencies. The Docker images are between 290 and 390 MB, which is also rather small. A from-sources install on a regular Ubuntu or Debian desktop is also trivial (5 lines and some time).

I'm trying to make an extraction pipeline that is user friendly and can be used across multiple platforms and ros packages just get in the way.

One accepted approach I've seen used is to delegate the ROS/platform specific parts to a hosted web service, which takes care of massaging the data into whatever format you like. Several platforms/companies have formed around this idea, such as Bag Database, Marv and BotBags. Using a REST API the format specifics can be delegated to the hosted services and clients can download whatever formats the server can transform the data into.

A disadvantage of this approach is of course that clients would have to upload their bags first.

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

Stats

Asked: 2018-03-30 15:51:04 -0500

Seen: 313 times

Last updated: Mar 31 '18