17 cout <<
s << (
s ==
"" ?
"" :
"\n");
18 cout <<
"LocalOrientedPlane3Factor Factor (" << keyFormatter(key<1>()) <<
", "
19 << keyFormatter(key<2>()) <<
", " << keyFormatter(key<3>()) <<
")\n";
20 measured_p_.print(
"Measured Plane");
21 this->noiseModel_->print(
" noise model: ");
25 Vector LocalOrientedPlane3Factor::evaluateError(
const Pose3& wTwi,
30 Matrix66 aTai_H_wTwa, aTai_H_wTwi;
31 Matrix36 predicted_H_aTai;
32 Matrix33 predicted_H_plane, error_H_predicted;
36 H2 ? &aTai_H_wTwa :
nullptr,
37 H1 ? &aTai_H_wTwi :
nullptr);
41 H2 ? &predicted_H_plane :
nullptr,
42 (H1 || H3) ? &predicted_H_aTai :
nullptr);
46 {}, (H1 || H2 || H3) ? &error_H_predicted :
nullptr);
50 *H1 = error_H_predicted * predicted_H_aTai * aTai_H_wTwi;
54 *H2 = error_H_predicted * predicted_H_aTai * aTai_H_wTwa;
58 *H3 = error_H_predicted * predicted_H_plane;