OSVR-Core  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
EigenInterop.h File Reference

Header for interoperation between the Eigen math library, the internal mini math library, and VRPN's quatlib. More...

Go to the source code of this file.

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 
 osvr::util
 The Util library: Functionality not necessarily coupled to any particular core library, serving more as a common base layer behind all systems.
 
 osvr::util::eigen_interop
 

Functions

Eigen::Map< Eigen::Vector3d > osvr::util::vecMap (OSVR_Vec3 &vec)
 Wrap an OSVR_Vec3 in an Eigen object that allows it to interoperate with Eigen as though it were an Eigen::Vector3d. More...
 
Eigen::Map< const Eigen::Vector3d > osvr::util::vecMap (OSVR_Vec3 const &vec)
 
Eigen::Quaterniond osvr::util::fromQuat (OSVR_Quaternion const &q)
 Convert an OSVR_Quaternion to an Eigen::Quaterniond.
 
void osvr::util::toQuat (Eigen::Quaterniond const &src, OSVR_Quaternion &q)
 Convert an Eigen::Quaterniond to a OSVR_Quaternion.
 
Eigen::Isometry3d osvr::util::fromPose (OSVR_Pose3 const &pose)
 Turn an OSVR_Pose3 into an Eigen::Transform. More...
 
void osvr::util::toPose (Eigen::Isometry3d const &xform, OSVR_Pose3 &pose)
 Turn an Eigen::Isometry3d (transform) into an OSVR_Pose3. More...
 
void osvr::util::toPose (Eigen::Matrix4d const &mat, OSVR_Pose3 &pose)
 Turn an Eigen::Matrix4d (transform) into an OSVR_Pose3. More...
 

Detailed Description

Header for interoperation between the Eigen math library, the internal mini math library, and VRPN's quatlib.

Date
2014
Author
Sensics, Inc. http://sensics.com/osvr

Definition in file EigenInterop.h.