gaoxiang12 / slambook2

edition 2 of the slambook
MIT License
5.39k stars 2k forks source link

ch7 pose_estimation_3d3d BA报错 #252

Open ajxdhe opened 1 year ago

ajxdhe commented 1 year ago

高翔老师,您好,我用ide单独编译pose_estimation_3d3d.cpp 时编译没有出错但是我运行程序时执行calling bundle adjustment时出现了这个错误

terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc 已放弃 (核心已转储)

望解答

终端输出: ./pose_estimation_3d3d 1.png 2.png 1_depth.png 2_depth.png -- Max dist : 95.000000 -- Min dist : 4.000000 一共找到了79组匹配点 3d-3d pairs: 74 W= 11.9404 -0.567258 1.64182 -1.79283 4.31299 -6.57615 3.12791 -6.55815 10.8576 U= 0.474144 -0.880373 -0.0114952 -0.460275 -0.258979 0.849163 0.750556 0.397334 0.528006 V= 0.535211 -0.844064 -0.0332488 -0.434767 -0.309001 0.84587 0.724242 0.438263 0.532352 ICP via SVD results: R = [0.9972395977366735, 0.05617039856770108, -0.04855997354553421; -0.05598345194682008, 0.9984181427731503, 0.005202431117422968; 0.04877538122983249, -0.002469515369266706, 0.9988067198811419] t = [0.1417248739257467; -0.05551033302525168; -0.03119093188273836] R_inv = [0.9972395977366735, -0.05598345194682008, 0.04877538122983249; 0.05617039856770108, 0.9984181427731503, -0.002469515369266706; -0.04855997354553421, 0.005202431117422968, 0.9988067198811419] t_inv = [-0.1429199667309692; 0.04738475446275831; 0.03832465717628154] calling bundle adjustment terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc 已放弃 (核心已转储)