rtabmap icon indicating copy to clipboard operation
rtabmap copied to clipboard

Failure to load calibration from ZED Open Capture

Open marius851000 opened this issue 1 year ago • 3 comments

I recently bought a ZED mini camera that I plan to use with zed open capture. The program correctly fetch the calibration, but it appear that file parsing fail with the "ZED File invalid" error message.

The file, download from "https://www.stereolabs.com/developers/calib?SN=10025811", (renamed with a .txt to please GitHub) is: SN10025811.conf.txt

I’ll try to debug this problem myself.

marius851000 avatar Dec 07 '24 13:12 marius851000

After some testing, it appears to be a locale issue, where atof use "," instead of "." for some reason.

marius851000 avatar Dec 07 '24 15:12 marius851000

Is it that line causing the issue? https://github.com/introlab/rtabmap/blob/d33e98a540fbea0d56dd9ddb8df7f9003229983f/corelib/src/camera/CameraStereoZedOC.cpp#L95

That could be fixed with uStr2Float function instead: https://github.com/introlab/rtabmap/commit/3d1eccbce1145596fea00c5b387538a0c83a5966

matlabbe avatar Dec 08 '24 02:12 matlabbe

Yes. I've prepared a patch that use getDatas (from C++17), but now that I see there is a dedicated function already there, I will change it to use this (simpler) one.

8 déc. 2024 03:42:52 matlabbe @.***>:

Is it that line causing the issue? https://github.com/introlab/rtabmap/blob/d33e98a540fbea0d56dd9ddb8df7f9003229983f/corelib/src/camera/CameraStereoZedOC.cpp#L95

That could be fixed with uStr2Float function instead: 3d1eccb[https://github.com/introlab/rtabmap/commit/3d1eccbce1145596fea00c5b387538a0c83a5966]

— Reply to this email directly, view it on GitHub[https://github.com/introlab/rtabmap/issues/1400#issuecomment-2525388474], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AFMKJZANMJUOVUWURAJXKGD2EOWMVAVCNFSM6AAAAABTGHEQ7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRVGM4DQNBXGQ]. You are receiving this because you authored the thread.

marius851000 avatar Dec 09 '24 10:12 marius851000