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