MCPcopy Create free account
hub / github.com/dartsim/dart / CheckIsometry

Function CheckIsometry

python/dartpy/eigen_geometry_pybind.cpp:88–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87template <typename T>
88void CheckIsometry(const Eigen::Transform<T, 3, Eigen::Isometry>& X)
89{
90 CheckRotMat<T>(X.linear());
91 Eigen::Matrix<T, 1, 4> bottom_expected;
92 bottom_expected << 0, 0, 0, 1;
93 const T bottom_error
94 = (X.matrix().bottomRows(1) - bottom_expected).array().abs().maxCoeff();
95
96 DART_UNUSED(bottom_error);
97 DART_ASSERT(
98 bottom_error < kCheckTolerance
99 && "Homogeneous matrix is improperly scaled.");
100}
101
102template <typename T>
103void CheckQuaternion(const Eigen::Quaternion<T>& q)

Callers 1

eigen_geometryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected