MCPcopy Create free account
hub / github.com/ComputationalRobotics/XM-code / CalcTransAngle

Function CalcTransAngle

deps/glomap/glomap/math/rigid3d.cc:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21double CalcTransAngle(const Rigid3d& pose1, const Rigid3d& pose2) {
22 double cos_r = (pose1.translation).dot(pose2.translation) /
23 (pose1.translation.norm() * pose2.translation.norm());
24 cos_r = std::min(std::max(cos_r, -1.), 1.);
25
26 return std::acos(cos_r) * 180 / EIGEN_PI;
27}
28
29double CalcAngle(const Eigen::Matrix3d& rotation1,
30 const Eigen::Matrix3d& rotation2) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected