mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +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())
|
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())
|
if(this->getPose().rotation().isIdentity())
|
||||||
@@ -442,7 +442,7 @@ Transform OdometryVINS::computeTransform(
|
|||||||
info->reg.covariance *= this->framesProcessed() == 0?9999:0.0001;
|
info->reg.covariance *= this->framesProcessed() == 0?9999:0.0001;
|
||||||
|
|
||||||
// feature map
|
// 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)
|
for (auto &it_per_id : vinsEstimator_->f_manager.feature)
|
||||||
{
|
{
|
||||||
int used_num;
|
int used_num;
|
||||||
|
|||||||
Reference in New Issue
Block a user