Simplified evaluateError
parent
5df3eebd2e
commit
4adca52daa
|
|
@ -45,16 +45,13 @@ public:
|
||||||
const KeyFormatter& keyFormatter = DefaultKeyFormatter) const override;
|
const KeyFormatter& keyFormatter = DefaultKeyFormatter) const override;
|
||||||
|
|
||||||
/// evaluateError
|
/// evaluateError
|
||||||
Vector evaluateError(const Pose3& pose, const OrientedPlane3& plane,
|
Vector evaluateError(
|
||||||
boost::optional<Matrix&> H1 = boost::none, boost::optional<Matrix&> H2 =
|
const Pose3& pose, const OrientedPlane3& plane,
|
||||||
boost::none) const override {
|
boost::optional<Matrix&> H1 = boost::none,
|
||||||
OrientedPlane3 predicted_plane = OrientedPlane3::Transform(plane, pose, H1,
|
boost::optional<Matrix&> H2 = boost::none) const override {
|
||||||
H2);
|
auto predicted_plane = OrientedPlane3::Transform(plane, pose, H1, H2);
|
||||||
Vector err(3);
|
return predicted_plane.error(measured_p_);
|
||||||
err << predicted_plane.error(measured_p_);
|
|
||||||
return (err);
|
|
||||||
}
|
}
|
||||||
;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: Convert this factor to dimension two, three dimensions is redundant for direction prior
|
// TODO: Convert this factor to dimension two, three dimensions is redundant for direction prior
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue