zdzhaoyong/GSLAM

something error in test

Opened this issue · 4 comments

Hello, bro. When I run the 'gslam Act=Tests --gtest_filter=', I meet an error in my ubuntu 16.04.
the log as follows:
duke@ubuntu:~$ gslam Act=Tests --gtest_filter=

[==========] Running 27 tests from 8 test cases.
[----------] Global test environment set-up.
[----------] 3 tests from GImageTest
[ RUN ] GImageTest.GImageReadThreadSafe
[ OK ] GImageTest.GImageReadThreadSafe (1003 ms)
[ RUN ] GImageTest.CheckGImageType
[ OK ] GImageTest.CheckGImageType (0 ms)
[ RUN ] GImageTest.OpenCVNoCopy
[ OK ] GImageTest.OpenCVNoCopy (301 ms)
[----------] 3 tests from GImageTest (1304 ms total)

[----------] 6 tests from Estimator
[ RUN ] Estimator.HomographyRANSAC
H:,0.998719,1.99912,3.06695,3.99617,4.99894,6.09501,-7.13773e-06,2.28781e-06,1
MidNoise:0.111859,MidError:0.163132
[ OK ] Estimator.HomographyRANSAC (5 ms)
[ RUN ] Estimator.FundamentalSevenPoint
/home/duke/GSLAM/GSLAM/gslam/Tests/EstimatorTest.cpp:88: Failure
Expected: (fabs(F[0]-4.81441976)) <= (1e-6), actual: 1.00506e-06 vs 1e-06
/home/duke/GSLAM/GSLAM/gslam/Tests/EstimatorTest.cpp:89: Failure
Expected: (fabs(F[1]+8.16978909)) <= (1e-6), actual: 1.07973e-06 vs 1e-06
/home/duke/GSLAM/GSLAM/gslam/Tests/EstimatorTest.cpp:90: Failure
Expected: (fabs(F[2]-6.73133404)) <= (1e-6), actual: 1.67578e-06 vs 1e-06
/home/duke/GSLAM/GSLAM/gslam/Tests/EstimatorTest.cpp:94: Failure
Expected: (fabs(-9.92570126-F[6])) <= (1e-6), actual: 1.47626e-06 vs 1e-06
[ FAILED ] Estimator.FundamentalSevenPoint (0 ms)
[ RUN ] Estimator.FundamentalEightPoint
[ OK ] Estimator.FundamentalEightPoint (0 ms)
[ RUN ] Estimator.EssentialFivePoint
[ OK ] Estimator.EssentialFivePoint (0 ms)
[ RUN ] Estimator.SE3PlaneRansac
[ OK ] Estimator.SE3PlaneRansac (1 ms)
[ RUN ] Estimator.Triangulate
[ OK ] Estimator.Triangulate (0 ms)
[----------] 6 tests from Estimator (6 ms total)

[----------] 8 tests from Optimizer
[ RUN ] Optimizer.OptimizePoseSimulate
[ OK ] Optimizer.OptimizePoseSimulate (57 ms)
[ RUN ] Optimizer.OptimizePnPSimulate
[ OK ] Optimizer.OptimizePnPSimulate (4 ms)
[ RUN ] Optimizer.ICPSimulate
[ OK ] Optimizer.ICPSimulate (4 ms)
[ RUN ] Optimizer.SE3GraphSimulate

I don't know what that mean. So help me solve it if u free please.

Estimator.FundamentalSevenPoint that is the error

我也出现了相同的错误

改一下他测试代码里的值就行了

/home/wang/workspace/GSLAM/GSLAM/gslam/Tests/EstimatorTest.cpp:88: Failure
Expected: (fabs(F[0]-4.81441976)) <= (1e-6), actual: 1.00506e-06 vs 1e-06
/home/wang/workspace/GSLAM/GSLAM/gslam/Tests/EstimatorTest.cpp:89: Failure
Expected: (fabs(F[1]+8.16978909)) <= (1e-6), actual: 1.07973e-06 vs 1e-06
/home/wang/workspace/GSLAM/GSLAM/gslam/Tests/EstimatorTest.cpp:90: Failure
Expected: (fabs(F[2]-6.73133404)) <= (1e-6), actual: 1.67578e-06 vs 1e-06
/home/wang/workspace/GSLAM/GSLAM/gslam/Tests/EstimatorTest.cpp:94: Failure
Expected: (fabs(-9.92570126-F[6])) <= (1e-6), actual: 1.47626e-06 vs 1e-06

就是在GSLAM/GSLAM/gslam/Tests/EstimatorTest.cpp对应行

Same error here. Any new ideas on how to solve it?