Hello,
I am trying to use the bagcreater utility to generate the .bag file to calibrate a camera and IMU rig.
I set up my data directory as explained on this page (
https://github.com/ethz-asl/kalibr/wiki/bag-format) and read this thread (
https://groups.google.com/forum/#!topic/kalibr-users/dRoLkps0jWw) to get the timestamps right. Now the bagcreater seems to run correctly, although I find it surprising that it completes in only a few seconds and that the generated bag file is only a few megabytes (is it not supposed to contain all the images, i.e. about 500MB of data?).
However, when I try to extract camera and imu data from the bag file using bagextractor, I get the following exception:
Original exception was:
Traceback (most recent call last):
File "/var/kalibr-build/devel/bin/kalibr_bagextractor", line 5, in <module>
exec(fh.read())
File "<string>", line 46, in <module>
File "/var/kalibr-build/src/kalibr/aslam_offline_calibration/kalibr/python/kalibr_common/ImageDatasetReader.py", line 42, in __init__
raise RuntimeError("Could not find topic {0} in {1}.".format(imagetopic, self.bagfile))
RuntimeError: Could not find topic /cam0/image_raw in ~/Téléchargements/kalibr_calib_sequences/calib_imu2cam_5/imu2cam_5.bag.
If I try to extract only the IMU topic, I successfully get the IMU data back, but the image topic cannot be found. Of course, I get the same exception if I directly try to calibrate the camera/imu pose.
It feels like the bagcreator utility somehow fails to load the images and only includes the IMU data in the bag file. Any idea what could be wrong ?
In case it can be useful, I am using 1600x1200 grayscale images stored as PNG files.