This is how I get the current ARKit camera pose and send it to the Unity app (via a socket):
func sendPoseUpdate(with frame: ARFrame) {
guard case .normal = frame.camera.trackingState else { return }
let position = frame.camera.transform.columns.3
let positionVector = Vector3(
x: .init(position.x),