Skip to content

WIP: ADA Hackathon 2020, ORB_SLAM3 as an ILLIXR plugin.#1

Open
Alkaid-Benetnash wants to merge 2 commits into
ILLIXR:masterfrom
Alkaid-Benetnash:master
Open

WIP: ADA Hackathon 2020, ORB_SLAM3 as an ILLIXR plugin.#1
Alkaid-Benetnash wants to merge 2 commits into
ILLIXR:masterfrom
Alkaid-Benetnash:master

Conversation

@Alkaid-Benetnash
Copy link
Copy Markdown

@Alkaid-Benetnash Alkaid-Benetnash commented Nov 9, 2020

Did not test correctness.
Need to sym-link ILLIXR/common to ORB_SLAM3/ILLIXR_common.
Current CMakeFiles.txt can compile a .so target plugin.so, but it does not conform with ILLIXR plugin build scripts interfaces.

Comment on lines +239 to +248
cv::Mat Rwc = Tcw.rowRange(0, 3).colRange(0, 3).t();
cv::Mat twc = -Rwc * Tcw.rowRange(0, 3).col(3);
Eigen::Vector3f position{twc.at<float>(0), twc.at<float>(1),
twc.at<float>(2)};
Eigen::Matrix3f emat3f;
cv2eigen(Rwc, emat3f);
Eigen::Quaternionf orientation(emat3f);
_m_pose->put(new pose_type{.sensor_time = imu_cam_buffer->time,
.position = position,
.orientation = orientation});
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pose convertion part is wrong.
You need to figure out how ORB_SLAM3 encode poses.
This might be helpful but I failed to understand.
raulmur/ORB_SLAM2#428

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant