Ask Your Question
0

Rosbag and timestamp received vs timestamp published

asked 2016-03-26 23:47:02 -0600

JustinBlack02 gravatar image

updated 2016-03-31 14:41:30 -0600

I can't find it anymore but I seem to recall reading somewhere that when you record a rosbag, the timestamp encoded to the message is the time at which the message was received by the rosbag record process instead of the time at which it was published.

If this is true, is there a way to force a rosbag to instead encode messages with the timestamp which were published with them?

edit retag flag offensive close merge delete

Comments

If I may suggest: please re-open the question, post your edit as an answer and accept your own answer. That makes it a bit clearer that the question was actually answered - instead of just closed.

gvdhoorn gravatar imagegvdhoorn ( 2016-03-29 05:26:53 -0600 )edit

I tried, but it looks like I don't have enough points to reopen my question.

JustinBlack02 gravatar imageJustinBlack02 ( 2016-03-30 15:48:09 -0600 )edit

I've re-opened it for you.

gvdhoorn gravatar imagegvdhoorn ( 2016-03-31 01:47:58 -0600 )edit

Done, still need 10 points to accept my own answer though :/

JustinBlack02 gravatar imageJustinBlack02 ( 2016-03-31 14:45:30 -0600 )edit

I've just given you 10 points. You should be able to accept it now.

gvdhoorn gravatar imagegvdhoorn ( 2016-03-31 15:02:13 -0600 )edit

Answer accepted and question closed!

JustinBlack02 gravatar imageJustinBlack02 ( 2016-03-31 15:20:09 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-03-31 14:44:06 -0600

JustinBlack02 gravatar image

It seems the premise of this question is partly incorrect.

Although rosbag does store the time at which a message is a received, the time stamps aren't stripped and replaced with a new one but rather the entire stamped image is recorded (along with the publishing time stamp) as a sensor_msgs/Image which still contains the original Header.

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

2 followers

Stats

Asked: 2016-03-26 22:29:50 -0600

Seen: 1,135 times

Last updated: Mar 31 '16