Skip to content

Commit 4ce69b0

Browse files
committed
unnessary variable removed
1 parent 3c7bb8d commit 4ce69b0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/adjustment.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,10 @@ void AdjustmentFramework::update( const VectorXd &x)
8383
// m.segment(idx3,3).normalize();
8484

8585
// (2) via retraction ......................................................
86-
const Vector3d l0 = l0_.segment(idx3,3);
87-
const Vector3d v = null( l0 ) * x.segment(2 * s, 2);
86+
const Vector3d p = l0_.segment(idx3,3);
87+
const Vector3d v = null(p) * x.segment(2 * s, 2);
8888
const double nv = v.norm();
8989
if ( nv > T_zero ) {
90-
const Vector3d p = l0_.segment(idx3, 3);
9190
l0_.segment( idx3,3) = cos( nv)*p +sin(nv)*v/nv;
9291
}
9392
}

0 commit comments

Comments
 (0)