Let's say I have a series of images and want to create a bag file out of them to use as input for the camera calibration.
Is it even necessary to create the bag for the calibration or is there another way to use the images?
If not, can a bag file be created from an image sequence? I guess using some python-fu it should be possible. Would that be a good idea?
UPDATE: Using the bag file for calibration seems not feasible as the standard calibration app insists on talking back to the camera. So to use that one will need to hack the script. The other possibility that might be working (testing atm) is a not documented script "tarfile_calibration.py" which can read a tar file containing the image sequence. Simply create a tar file with numbered images in format "left%d.png" and "right%d.png" and you're good to go:
rosrun camera_calibration tarfile_calibration.py MyImages.tar --square 0.108 --size 8x6
↧