I am trying to convert a video to bagfile(.bag). I found this question: How do I convert a video or a sequence of images to a bag file? and implemented the solution https://stackoverflow.com/a/38093683/6938984. However when I play it with rosrun play bagfile.bag
, it gives this error:
Error: Index entry for topic camera/image_raw contains invalid time. This message will not be loaded.
How can I solve this?
Thank you.