MCPcopy Create free account
hub / github.com/UZ-SLAMLab/ORB_SLAM3 / SetPose

Method SetPose

src/KeyFrame.cc:109–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void KeyFrame::SetPose(const Sophus::SE3f &Tcw)
110{
111 unique_lock<mutex> lock(mMutexPose);
112
113 mTcw = Tcw;
114 mRcw = mTcw.rotationMatrix();
115 mTwc = mTcw.inverse();
116 mRwc = mTwc.rotationMatrix();
117
118 if (mImuCalib.mbIsSet) // TODO Use a flag instead of the OpenCV matrix
119 {
120 mOwb = mRwc * mImuCalib.mTcb.translation() + mTwc.translation();
121 }
122}
123
124void KeyFrame::SetVelocity(const Eigen::Vector3f &Vw)
125{

Callers

nothing calls this directly

Calls 2

rotationMatrixMethod · 0.80
inverseMethod · 0.45

Tested by

no test coverage detected