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

Hi, how to access the pose of the camera? #7

Closed
liqile opened this issue Mar 30, 2015 · 1 comment
Closed

Hi, how to access the pose of the camera? #7

liqile opened this issue Mar 30, 2015 · 1 comment

Comments

@liqile
Copy link

liqile commented Mar 30, 2015

Hello, @raulmur
I am sorry to trouble you but I am facing some problems while porting your code to an arm board.

The 1st problem is that I have no idea how to get the camera pose.
I have seen into your code, and found following lines
cv::Mat Rwc = mCurrentFrame.mTcw.rowRange(0,3).colRange(0,3).t();
cv::Mat twc = -Rwc*mCurrentFrame.mTcw.rowRange(0,3).col(3);
is Rwcthe rotation matrix of the camera in world coordinate system?
and
I am also wondering how to access the (x,y,z) coordinate of camera in world coordinate system?
is it twc or mCurrentFrame.mTcw.rowRange(0,3).col(3)?

The second problem is that how to remove the viewer and rviz of the program. Because I only need the pose of the camera. or how do I get to know all the topics with orbslam?

I am looking forward to hearing from you
best wishes to you

                                                                                                             yours, sincerely
                                                                                                             Li Qile
@raulmur
Copy link
Owner

raulmur commented Mar 30, 2015

subindex cw means that points in world coordinates are transformed into camera coordinates.
twc is the camera position (optical center) in world coordinates.

@raulmur raulmur closed this as completed Mar 30, 2015
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

No branches or pull requests

2 participants