LocalizationThumbnailSelector

public class LocalizationThumbnailSelector : PNDelegate

A helper class that selects a localization thumbnail for the current map by picking the frame that tracks the most good features

  • accessor to new thumbnail event to return the latest thumbnail texture for visualization purposes

    Declaration

    Swift

    public var onNewThumbnail: Event<UIImage?> { get }
  • Constructor.

    Declaration

    Swift

    public init()
  • Callback to subscribe to pose measurements from LibPlacenote

    Declaration

    Swift

    public func onPose(_ outputPose: matrix_float4x4, _ arkitPose: matrix_float4x4)

    Parameters

    outputPose

    Inertial pose with respect to the map LibPlacenote is tracking against.

    arkitPose

    Odometry pose with respect to the ARKit coordinate frame that corresponds with ‘outputPose’ in time.

  • Callback to subscribe to mapping session status changes.

    Declaration

    Swift

    public func onStatusChange(_ prevStatus: LibPlacenote.MappingStatus, _ currStatus: LibPlacenote.MappingStatus)

    Parameters

    prevStatus

    Status before the status change

    currStatus

    Current status of the mapping engine

  • Callback to subscribe to the first localization event for loading assets

    Declaration

    Swift

    public func onLocalized()