Ask Your Question
0

How to get the time on bag file?

asked 2012-09-01 06:08:02 -0500

bkim gravatar image

updated 2012-09-01 06:11:59 -0500

Hello,

I am trying to graph robot's distance from a particular point over time. I have a bag file, and wondering if I can get the duration in the bag file. For instance, if I play a x.bag file, I have the following information:

[PAUSED] Bag Time: 1346096057.781698 Duration: 1.680327 / 19.253778

Is there a way to get that duration in a code?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-09-01 10:33:48 -0500

joq gravatar image

From the command line, use rosbag info.

There is also a code API for both C++ and Python.

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: 2012-09-01 06:08:02 -0500

Seen: 1,768 times

Last updated: Sep 01 '12