Robotics StackExchange | Archived questions

I am getting rosbag error?

While writing rosbag I getting following error?

terminate called after throwing an instance of 'rosbag::BagIOException'
 what():  Error reading version line
Aborted (core dumped)

Asked by prajyot on 2019-07-02 05:27:25 UTC

Comments

This is probably a bug in your code. Unfortunately, you haven't provided enough information for me to give a useful answer. Please refer to the support guidelines and consider updating your question with the code that writes the bag file, or a minimal code example that reproduces the same problem.

Asked by ahendrix on 2019-07-02 10:31:12 UTC

I updated function which writes the bag file.

Asked by prajyot on 2019-07-03 00:26:23 UTC

Can you please update your question with formatted code using the preformatted text (101010) button? As it is, the code is not readable

Asked by jayess on 2019-07-03 01:23:23 UTC

Answers