Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Alkaid-Benetnash
Copy link

@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
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