123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- using System;
- using System.Runtime.InteropServices;
- namespace Unity.XR.PICO.TOBSupport
- {
-
- [StructLayout(LayoutKind.Sequential)]
- public struct SixDof
- {
- public Int64 timestamp;
- public double x;
- public double y;
- public double z;
- public double rw;
- public double rx;
- public double ry;
- public double rz;
- public byte type;
- public byte confidence;
- public PoseErrorType error;
- public double plane_height;
- public byte plane_status;
- public byte relocation_status;
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 24)]
- public byte[] reserved;
- }
- [StructLayout(LayoutKind.Sequential)]
- public struct AlgoResult
- {
- public SixDof pose;
- public SixDof relocation_pose;
- public double vx, vy, vz;
- public double ax, ay, az;
- public double wx, wy, wz;
- public double w_ax, w_ay, w_az;
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 48)]
- public byte[] reserved;
- }
- [StructLayout(LayoutKind.Sequential)]
- public struct FrameItem
- {
- public byte camera_id;
- public UInt32 width;
- public UInt32 height;
- public UInt32 format;
- public UInt32 exposure_duration;
- public UInt64 timestamp;
- public UInt64 qtimer_timestamp;
- public UInt64 framenumber;
- public UInt32 datasize;
- public IntPtr data;
- }
- [StructLayout(LayoutKind.Sequential)]
- public struct FrameItemExt
- {
- public FrameItem frame;
- public bool is_rgb;
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
- public double[] rgb_tsw_matrix;
- public bool is_anti_distortion;
- public AlgoResult six_dof_pose;
- [MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)]
- public byte[] reserved;
- }
- [StructLayout(LayoutKind.Sequential)]
- public struct Frame
- {
- public UInt32 width;
- public UInt32 height;
- public UInt64 timestamp;
- public UInt32 datasize;
- public IntPtr data;
- public UnityEngine.Pose pose;
- public int status;
- }
- [StructLayout(LayoutKind.Sequential)]
- public struct SensorState
- {
- public UnityEngine.Pose pose;
- public int status;
- }
- [StructLayout(LayoutKind.Sequential)]
- public struct RGBCameraParams
- {
-
- public double fx;
- public double fy;
- public double cx;
- public double cy;
-
- public double x;
- public double y;
- public double z;
- public double rw;
- public double rx;
- public double ry;
- public double rz;
- }
- }
|