Auki::ConjureKit::Manna::DebugStorage::DebugFrameStorage
A utility class for managing and storing debug frame data, including calibration data and video feed frames.
Public Functions
Name | |
---|---|
void | StoreCalibrationData(Texture texture, Matrix4x4 textureToProjectedCoordinatesMatrix, Matrix4x4 projectionMatrix, Matrix4x4 worldToCameraMatrix, Vector2[] detectedCorners, long timestamp, uint framestamp) Stores calibration data. |
void | StoreEstimatedPoseData(long timestamp, string payload, Vector2[] corners, Pose detectedPose, float physicalSize, Matrix4x4 textureToProjectedCoordinatesMatrix, Matrix4x4 projectionMatrix, Matrix4x4 worldToCameraMatrix) Stores estimated pose data. |
void | SetShouldStoreCalibrationFrame(bool value) Sets whether calibration frames should be stored or not. |
void | StoreVideoFrameTexture(Texture texture, long timestamp, Matrix4x4 textureToProjectedCoordinatesMatrix, Matrix4x4 projectionMatrix, Matrix4x4 worldToCameraMatrix) Stores the video frame texture. |
Vector2[] | GetCornersForTimestamp(long timestamp) Gets the detected corners for a specific timestamp. |
void | SetTicketForTimestamp(uint ticketNumber, long timestamp) Sets a ticket for a specific timestamp. |
void | CalibratingFromTicket(uint ticketNumber) Initiates calibration from a ticket number. |
void | CalibratingFromTimestamp(long timestamp) Initiates calibration from a specific timestamp. |
void | WillCalibrateFromLighthouseAtTimestamp(long timestamp, string lighthouseId) Indicates that calibration will be performed from a lighthouse at a specific timestamp. |
bool | TryGetPoseDataForLighthouseId(string lighthouseId, out EstimatedPoseData data) Tries to get pose data for a specific lighthouse identifier. |
Public Properties
Name | |
---|---|
bool | ShouldStoreCalibrationFrame Gets or sets a value indicating whether calibration frames should be stored. |
Public Attributes
Name | |
---|---|
DebugFrameCalibrationData | LastCalibration Gets the last stored calibration frame data. |
DebugFrameData | VideoFeed Gets the video feed frame data. |
Public Functions Documentation
function StoreCalibrationData
static void StoreCalibrationData(
Texture texture,
Matrix4x4 textureToProjectedCoordinatesMatrix,
Matrix4x4 projectionMatrix,
Matrix4x4 worldToCameraMatrix,
Vector2[] detectedCorners,
long timestamp,
uint framestamp
)
Stores calibration data.
Parameters:
- texture The frame texture.
- textureToProjectedCoordinatesMatrix The texture-to-projected-coordinates matrix.
- projectionMatrix The projection matrix.
- worldToCameraMatrix The world-to-camera matrix.
- detectedCorners The detected corners in the frame.
- timestamp The timestamp in milliseconds.
- framestamp The framestamp.
function StoreEstimatedPoseData
static void StoreEstimatedPoseData(
long timestamp,
string payload,
Vector2[] corners,
Pose detectedPose,
float physicalSize,
Matrix4x4 textureToProjectedCoordinatesMatrix,
Matrix4x4 projectionMatrix,
Matrix4x4 worldToCameraMatrix
)
Stores estimated pose data.
Parameters:
- timestamp The timestamp in milliseconds.
- payload The data payload.
- corners The detected corners in the frame.
- detectedPose The detected pose.
- physicalSize The physical size.
- textureToProjectedCoordinatesMatrix The texture-to-projected-coordinates matrix.
- projectionMatrix The projection matrix.
- worldToCameraMatrix The world-to-camera matrix.
function SetShouldStoreCalibrationFrame
static void SetShouldStoreCalibrationFrame(
bool value
)
Sets whether calibration frames should be stored or not.
Parameters:
- value A value indicating whether calibration frames should be stored.
function StoreVideoFrameTexture
static void StoreVideoFrameTexture(
Texture texture,
long timestamp,
Matrix4x4 textureToProjectedCoordinatesMatrix,
Matrix4x4 projectionMatrix,
Matrix4x4 worldToCameraMatrix
)
Stores the video frame texture.
Parameters:
- texture The frame texture.
- textureToProjectedCoordinatesMatrix The texture-to-projected-coordinates matrix.
- projectionMatrix The projection matrix.
- worldToCameraMatrix The world-to-camera matrix.
- timestamp The timestamp in milliseconds.
function GetCornersForTimestamp
static Vector2[] GetCornersForTimestamp(
long timestamp
)
Gets the detected corners for a specific timestamp.
Parameters:
- timestamp The timestamp in milliseconds.
Return: An array of detected corners.
function SetTicketForTimestamp
static void SetTicketForTimestamp(
uint ticketNumber,
long timestamp
)
Sets a ticket for a specific timestamp.
Parameters:
- ticketNumber The ticket number.
- timestamp The timestamp in milliseconds.
function CalibratingFromTicket
static void CalibratingFromTicket(
uint ticketNumber
)
Initiates calibration from a ticket number.
Parameters:
- ticketNumber The ticket number.
function CalibratingFromTimestamp
static void CalibratingFromTimestamp(
long timestamp
)
Initiates calibration from a specific timestamp.
Parameters:
- timestamp The timestamp in milliseconds.
function WillCalibrateFromLighthouseAtTimestamp
static void WillCalibrateFromLighthouseAtTimestamp(
long timestamp,
string lighthouseId
)
Indicates that calibration will be performed from a lighthouse at a specific timestamp.
Parameters:
- timestamp The timestamp in milliseconds.
- lighthouseId The lighthouse identifier.
function TryGetPoseDataForLighthouseId
static bool TryGetPoseDataForLighthouseId(
string lighthouseId,
out EstimatedPoseData data
)
Tries to get pose data for a specific lighthouse identifier.
Parameters:
- lighthouseId The lighthouse identifier.
- data When this method returns, contains the estimated pose data if found; otherwise, it contains null.
Return: True if pose data is available, false otherwise.
Public Property Documentation
property ShouldStoreCalibrationFrame
static bool ShouldStoreCalibrationFrame;
Gets or sets a value indicating whether calibration frames should be stored.
Public Attributes Documentation
variable LastCalibration
static DebugFrameCalibrationData LastCalibration;
Gets the last stored calibration frame data.
variable VideoFeed
static DebugFrameData VideoFeed;
Gets the video feed frame data.