Show / Hide Table of Contents

    Class QRSpatialCoord

    Wrapper class for SpatialCoordinateSystem.

    Inheritance
    Object
    QRSpatialCoord
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.WorldLocking.Samples.Advanced.QRSpacePins
    Assembly: cs.temp.dll.dll
    Syntax
    public class QRSpatialCoord
    Remarks

    Provides a transform of the QR code's pose into Spongy space.

    Properties

    CurrentPose

    The last computed pose.

    Declaration
    public Pose CurrentPose { get; }
    Property Value
    Type Description
    Pose

    SpatialNodeId

    Accessor for spatial node id.

    Declaration
    public Guid SpatialNodeId { get; set; }
    Property Value
    Type Description
    Guid

    Methods

    ComputePose(out Pose)

    Compute the head relative pose for the spatial node id.

    Declaration
    public bool ComputePose(out Pose pose)
    Parameters
    Type Name Description
    Pose pose

    If return value is true, the newly computed pose, else the last pose computed.

    Returns
    Type Description
    Boolean

    True if a new pose was successfully computed.

    Remarks

    This ultimately relies on SpatialCoordinateSystem.TryGetTransformTo. TryGetTransformTo seems to fail for a while after the QR code is created. Or maybe just spurious failure. Haven't found any documentation on behavior so far. Main thing is to be prepared for failure, and just try back until success.

    Back to top Generated by DocFX