ORB_SLAM icon indicating copy to clipboard operation
ORB_SLAM copied to clipboard

camera poses of all the frames

Open vibhav-vineet opened this issue 9 years ago • 2 comments

Hi Raul,

Thanks for sharing the code. I want to save the camera pose of all the frames, not only for the key frames. Could you please tell how to do this?

thanks,

vibhav-vineet avatar Apr 30 '15 20:04 vibhav-vineet

The Frame class stores the pose in mTcw which is a cv::Mat 4x4 of type float (CV_32F) It transforms points in the world coordinate system into the camera. You could access this member at the end of GrabImage function in Tracking. However you should consider that frames are not optimized with bundle adjustment, being potentially inconsistent with the keyframes. For example when the map contains few keyframes, and all of them are included in the local bundle adjustment, the global scale of the reconstruction might change and frame poses will not notice.

raulmur avatar May 04 '15 09:05 raulmur

hello Raul, thank you a lot for sharing the code... Can you please tell me where in the code i can find where you set the origin of the world coordinate system and how it is transformed into the camera one?

thank you very much :)

geokarant avatar Oct 17 '16 10:10 geokarant