Namespaces | Variables
t265_rpy.py File Reference

Go to the source code of this file.

Namespaces

 t265_rpy
 

Variables

 t265_rpy.cfg = rs.config()
 
 t265_rpy.data = pose.get_pose_data()
 
 t265_rpy.frames = pipe.wait_for_frames()
 
 t265_rpy.pipe = rs.pipeline()
 
float t265_rpy.pitch = -m.asin(2.0 * (x*z - w*y))*180.0
 
 t265_rpy.pose = frames.get_pose_frame()
 
float t265_rpy.roll = m.atan2(2.0 * (w*x + y*z), w*w - x*x - y*y + z*z)*180.0
 
 t265_rpy.w = data.rotation.w
 
 t265_rpy.x = -data.rotation.z
 
 t265_rpy.y = data.rotation.x
 
float t265_rpy.yaw = m.atan2(2.0 * (w*z + x*y), w*w + x*x - y*y - z*z)*180.0
 
 t265_rpy.z = -data.rotation.y
 


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:30