ethz-asl / kalibr

The Kalibr visual-inertial calibration toolbox
Other
4.28k stars 1.39k forks source link

error: Spline Coefficient Buffer Exceeded. Set larger buffer margins! with static_dataset #585

Open zoldaten opened 1 year ago

zoldaten commented 1 year ago

hi! i`m trying to calibrate static dataset with rosbag recorded on raspberry pi:

rosrun kalibr kalibr_calibrate_rs_cameras --bag chess_static_30fps.bag --model pinhole-radtan-rs --target checkerboard_8x6.yaml \
--topic /camera/image_raw --inverse-feature-variance 1 --frame-rate 30

and got this:

Exception in thread block: [aslam::Exception] /home/ubuntu/kalibr_workspace/src/kalibr/aslam_nonparametric_estimation/aslam_splines/src/BSplineExpressions.cpp:447: toTransformationMatrixImplementation() assert(_bufferTmin <= _time.toScalar() < _bufferTmax) failed [1.6704e+09 <= 1.6704e+09 < 1.6704e+09]: Spline Coefficient Buffer Exceeded. Set larger buffer margins!
Exception in thread block: [aslam::Exception] /home/ubuntu/kalibr_workspace/src/kalibr/aslam_nonparametric_estimation/aslam_splines/src/BSplineExpressions.cpp:447: toTransformationMatrixImplementation() assert(_bufferTmin <= _time.toScalar() < _bufferTmax) failed [1.6704e+09 <= 1.6704e+09 < 1.6704e+09]: Spline Coefficient Buffer Exceeded. Set larger buffer margins!
Exception in thread block: [aslam::Exception] /home/ubuntu/kalibr_workspace/src/kalibr/aslam_nonparametric_estimation/aslam_splines/src/BSplineExpressions.cpp:447: toTransformationMatrixImplementation() assert(_bufferTmin <= _time.toScalar() < _bufferTmax) failed [1.6704e+09 <= 1.6704e+09 < 1.6704e+09]: Spline Coefficient Buffer Exceeded. Set larger buffer margins!
[ERROR] [1670403011.520368]: Exception: std::exception

The camera i use is csi fisheye 160 deg. And it seems i got enough good pictures to calibrate:

Number of images: 3596
Extracting calibration target corners
  Extracted corners for 339 images (of 3596 images)

what`s going wrong ?

goldbattle commented 1 year ago

Please post a bag and configuration.

zoldaten commented 1 year ago

checkerboard_8x6.yaml :

#checkerboard_8x6.yaml
target_type: 'checkerboard'
targetCols: 8
targetRows: 6
rowSpacingMeters: 0.027
colSpacingMeters: 0.027

rosbag - link

command i use: rosrun kalibr kalibr_calibrate_rs_cameras --bag chess_static_30fps.bag --model pinhole-radtan-rs --target checkerboard_8x6.yaml --topic /camera/image_raw --inverse-feature-variance 1 --frame-rate 30

camera used - camera