33 #include <FPExceptionEnabler.h>
43 void VideoIMUFusion::RunningData::handleIMUReport(
48 void VideoIMUFusion::RunningData::handleIMUVelocity(
50 state().angularVelocity() = angVel;
53 void VideoIMUFusion::RunningData::handleVideoTrackerReport(
55 state().position() = takeCameraPoseToRoom(report.
pose).translation();
60 auto dt =
duration(timestamp, m_last);
OSVR_PoseState pose
The pose structure, containing a position vector and a rotation quaternion.
void setQuaternion(Eigen::Quaterniond const &quaternion)
Intended for startup use.
double duration(TimeValue const &a, TimeValue const &b)
Get a double containing seconds between the time points.
Report type for an orientation callback on a tracker interface.
bool preReport(const OSVR_TimeValue ×tamp)
Returns true if we succeeded and can filter in some data.
Internal, configured header file for verbosity macros.
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
OSVR_OrientationState rotation
The rotation unit quaternion.
Report type for a pose (position and orientation) callback on a tracker interface.