mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
OdometryVINS: fixed output pose orientation (D435i and euroc compatible)
This commit is contained in:
@@ -417,7 +417,7 @@ Transform OdometryVINS::computeTransform(
|
||||
{
|
||||
if(!lastImu_.localTransform().isNull())
|
||||
{
|
||||
p = p * lastImu_.localTransform();
|
||||
p = Transform(0,1,0,0,-1,0,0,0, 0,0,1,0) * p * lastImu_.localTransform().inverse();
|
||||
}
|
||||
|
||||
if(this->getPose().rotation().isIdentity())
|
||||
@@ -442,7 +442,7 @@ Transform OdometryVINS::computeTransform(
|
||||
info->reg.covariance *= this->framesProcessed() == 0?9999:0.0001;
|
||||
|
||||
// feature map
|
||||
Transform fixT = this->getPose()*previousPoseInv;
|
||||
Transform fixT = this->getPose()*previousPoseInv*Transform(0,1,0,0,-1,0,0,0, 0,0,1,0);
|
||||
for (auto &it_per_id : vinsEstimator_->f_manager.feature)
|
||||
{
|
||||
int used_num;
|
||||
|
||||
Reference in New Issue
Block a user