VINS-Mobile icon indicating copy to clipboard operation
VINS-Mobile copied to clipboard

Why does Label of VINS-Mobile alway appear "FAIL_COST" "FAIL_SFM" and "FAIL_ALIGN".

Open Chenwei-Jheng opened this issue 7 years ago • 5 comments

I try VINS_Mobile to iPhone 6 Plus, but STA Label appears FAIL_COST, FAIL_SFM and FAIL_ALIGN. The iPhone 6 PLUS params are FOCUS_LENGTH_X = 547.565; FOCUS_LENGTH_Y = 547.998; PX = 239.033; PY = 309.452; SOLVER_TIME = 0.08; FREQ = 3; //extrinsic param TIC_X = 0.0; TIC_Y = 0.065; TIC_Z = 0.0; Is the questoin "FAIL_COST" ,"FAIL_SFM" and "FAIL_ALIGN" about Camera params?

Chenwei-Jheng avatar Nov 15 '17 03:11 Chenwei-Jheng

Maybe not, the optimization doesn't require camera intrinsic parameters of high accuracy (although the result will be worse, but no failure. you should check the quality of the image or the relative rotation between imu and cam.

vonzy avatar Dec 14 '17 06:12 vonzy

In Xcode, I set Edit Scheme -> Run -> Info -> Build Configuration for Release. It is successfully. I set Edit Scheme -> Run -> Info -> Build Configuration for Debug, It appear question about "FAIL_COST" ,"FAIL_SFM" and "FAIL_ALIGN". Do the Eigen or the Ceres Solver cause these question?

Chenwei-Jheng avatar Jan 03 '18 02:01 Chenwei-Jheng

@Chenwei-Jheng Does the issue solved? I also met this kind of issue, always appear "FAIL_PARA" "FAIL_COST" "FAIL_SFM" and "FAIL_ALIGN". when porting to Android

kismeter avatar Nov 14 '18 06:11 kismeter

Maybe the Ceres solver is not accurate in Android. In Xcode, I set "Optimization Level" for "Faster [-O2]", the VINS is successful. You can try to find this Setting in Android Studio or eclipse.

The "Optimization Level" is finded for "Xcode" -> "Build Setting"->"Apple Clang - Code Generation"->"Optimization Level".

Chenwei-Jheng avatar Nov 14 '18 06:11 Chenwei-Jheng

Maybe the Ceres solver is not accurate in Android. In Xcode, I set "Optimization Level" for "Faster [-O2]", the VINS is successful. You can try to find this Setting in Android Studio or eclipse.

The "Optimization Level" is finded for "Xcode" -> "Build Setting"->"Apple Clang - Code Generation"->"Optimization Level".

I explicitly set build type to Release, and change Optimization level for O2, the VINS successful. Thanks

-DCMAKE_BUILD_TYPE=Release

kismeter avatar Nov 14 '18 09:11 kismeter