Alternate matrix operation
parent
832072c940
commit
2285b14c5f
|
@ -67,9 +67,9 @@ public:
|
|||
if (H) {
|
||||
*H = gtsam::zeros(rDim, xDim);
|
||||
if (pose_traits::isRotFirst<Pose>())
|
||||
(*H).leftCols(rDim) = eye(rDim);
|
||||
(*H).leftCols(rDim).setIdentity(rDim, rDim); // = eye(rDim); // FIXME: avoiding use of assign with eye()
|
||||
else
|
||||
(*H).rightCols(rDim) = eye(rDim);
|
||||
(*H).rightCols(rDim).setIdentity(rDim, rDim); // = eye(rDim);
|
||||
}
|
||||
|
||||
return Rotation::Logmap(newR) - Rotation::Logmap(measured_);
|
||||
|
|
Loading…
Reference in New Issue