25 #ifndef INCLUDED_AngVelTools_h_GUID_628878EF_DAFC_4486_36BC_6C47BD452AB0 26 #define INCLUDED_AngVelTools_h_GUID_628878EF_DAFC_4486_36BC_6C47BD452AB0 43 return util::quat_exp(angVelVec * dt * 0.5).
normalized();
50 if (incRot.
w() >= 1. || incRot.
vec().isZero(1e-10)) {
51 return Eigen::Vector3d::Zero();
53 auto angle = std::acos(incRot.
w());
54 return incRot.
vec().normalized() * angle * 2. / dt;
56 return util::quat_ln(incRot) * 2. / dt;
62 #endif // INCLUDED_AngVelTools_h_GUID_628878EF_DAFC_4486_36BC_6C47BD452AB0
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
Header wrapping include of <Eigen/Core> and <Eigen/Geometry> for warning quieting.
const Block< const Coefficients, 3, 1 > vec() const
Definition: Quaternion.h:87
Scalar w() const
Definition: Quaternion.h:75
Definition: Quaternion.h:47
Quaternion normalized() const
Definition: Quaternion.h:154