PNDelegate

public protocol PNDelegate

Interface to be implemented by listener classes that subscribes to pose and mapping status from LibPlacenote

  • Callback to subscribe to pose measurements from LibPlacenote

    Declaration

    Swift

    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

    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

    func onLocalized()