Namespaces | Macros | Functions
conversions.h File Reference
#include "glm/glm.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "glm/gtc/quaternion.hpp"
Include dependency graph for conversions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 tango_gl
 
 tango_gl::conversions
 

Macros

#define GLM_FORCE_RADIANS
 

Functions

glm::mat4 tango_gl::conversions::color_camera_T_opengl_camera ()
 
glm::mat4 tango_gl::conversions::depth_camera_T_opengl_camera ()
 
glm::mat4 tango_gl::conversions::opengl_world_T_tango_world ()
 
glm::quat tango_gl::conversions::QuatFromArray (const double *array)
 Creates a glm::quat from double[4] = {x, y, z, w}. This is designed to work with the TangoPoseData.orientation field. More...
 
glm::quat tango_gl::conversions::QuatTangoToGl (const glm::quat &tango_q_any)
 Given a quaternion representing the rotation matrix tango_R_any, returns the quaternion representing gl_R_any, where "any" is an arbitrary frame. Note the gl base frame is rotated by 90-degrees about +X from the Tango ADF/start-of-service frame, so this is equivalent to applying such a rotation to the quaternion. More...
 
glm::mat4 tango_gl::conversions::TransformFromArrays (const double *A_p_B, const double *A_q_B)
 Creates a glm::mat4 rigid-frame transformation matrix from two arrays. This is designed for the TangoPoseData translation and orientation fields. More...
 
glm::mat4 tango_gl::conversions::TransformFromVecAndQuat (const glm::vec3 &A_p_B, const glm::quat &A_q_B)
 Creates a glm::mat4 rigid-frame transformation matrix from glm::vec3 and glm::quat. This is designed for the TangoPoseData translation and orientation fields. More...
 
glm::vec3 tango_gl::conversions::Vec3FromArray (const double *array)
 Creates a glm::vec3 from double[3] = {x, y, z}. This is designed to work with the TangoPoseData.translation field. More...
 
glm::vec3 tango_gl::conversions::Vec3GlToTango (const glm::vec3 &gl_vec)
 Convert (re-express, or rotate) a vector from the typical OpenGl world frame convention [right, up, backward] to the Tango ADF (or start-of-service) frame convention [right, forward, up]. Note this assumes the two frames are coincident, and it doesn't know about any additional offsets between a particular OpenGl scene and the Tango service frames. More...
 
glm::vec3 tango_gl::conversions::Vec3TangoToGl (const glm::vec3 &tango_vec)
 Convert (re-express, or rotate) a vector from the Tango ADF (or start- of-service) frame convention [right, forward, up] to the typical OpenGl world frame convention [right, up, backward]. Note this assumes the two frames are coincident, and it doesn't know about any additional offsets between a particular OpenGl scene and the Tango service frames. More...
 

Macro Definition Documentation

◆ GLM_FORCE_RADIANS

#define GLM_FORCE_RADIANS

Definition at line 20 of file conversions.h.



rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Jan 23 2023 03:38:58