Apply google format
parent
66c8ca4af0
commit
cc5c5c06ea
|
@ -46,8 +46,8 @@ Vector BarometricFactor::evaluateError(const Pose3& p, const double& bias,
|
|||
boost::optional<Matrix&> H,
|
||||
boost::optional<Matrix&> H2) const {
|
||||
Matrix tH;
|
||||
Vector ret =(Vector(1) << (p.translation(tH).z() + bias - nT_)).finished();
|
||||
if (H) (*H) = tH.block<1,6>(2,0);
|
||||
Vector ret = (Vector(1) << (p.translation(tH).z() + bias - nT_)).finished();
|
||||
if (H) (*H) = tH.block<1, 6>(2, 0);
|
||||
if (H2) (*H2) = (Matrix(1, 1) << 1.0).finished();
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue