MCPcopy Create free account
hub / github.com/Pamphlett/Outram / compute_adj_rpe

Method compute_adj_rpe

include/eval.hpp:29–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27// }
28
29void Eval::compute_adj_rpe(Eigen::Matrix4d& gt,
30 Eigen::Matrix4d& lo,
31 double& t_e,
32 double& r_e) {
33 Eigen::Matrix4d delta_T = lo.inverse() * gt;
34
35 t_e = delta_T.topRightCorner(3, 1).norm();
36
37 r_e = std::abs(std::acos(
38 fmin(fmax((delta_T.block<3, 3>(0, 0).trace() - 1) / 2, -1.0),
39 1.0))) /
40 M_PI * 180;
41}
42
43#endif

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected