Coder Social home page Coder Social logo

glennneiger / measurearkitpusher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eh3rrera/measurearkitpusher

0.0 1.0 0.0 82 KB

Simple measure AR app made with ARKit. It sends the measures to Pusher so they can be consumed by other apps in realtime.

License: MIT License

Swift 96.87% Ruby 3.13%

measurearkitpusher's Introduction

MeasureARKitPusher

Simple measure AR app made with ARKit. It sends the measures to Pusher so they can be consumed by other apps in realtime. Follow the tutorial at the Pusher blog (not yet published).

Measuring app with ARKit and Pusher - 1

Measuring app with ARKit and Pusher - 2

The measurements are based on the plane detection’s capabilities of ARKit, and they are not perfect in some situations (for example, in low lighting or when a surface is not entirely flat) so the results won’t be completely accurate all the time, they’re close, but they can vary.

This app uses a beta version of the Pusher library for Swift 3.2 based on the branch https://github.com/pusher/pusher-websocket-swift/tree/swift-3.2. It will be updated when Pusher releases new version of the library to support Swift 4.

Requirements

  • Xcode 9 (Beta 5 or superior)
  • iOS 11 beta 5 (or superior)
  • An iOS device with an A9 or better processor (iPhone 6s or superior, iPad Pro, iPad 2017)
  • A free Pusher account

Installation

  1. Login to Pusher and create an app, with client events enabled (the option is in the App Setting tab of the app).
  2. Clone this repository and cd into it.
  3. Open the workspace in Xcode 9.
  4. Make sure the version of Swift is 3.2 in the PusherSwift target so it can compile without errors. In the project navigator, select Pods, then in the Targets section select PusherSwift, and in the Build Settings tab look for the option Swift Language Version. Change it to Swift 3.2 if necessary.
  5. Edit ViewController.swift to enter you Pusher app key, secret, and cluster
  6. You have to run the project in a real device with iOS 11. AR won’t work in the simulator, so configure a team to sign your app (a paid developer account is not required for testing in one device).
  7. Wait until the app detect enough planes (the status will change to READY) to start measuring.
  8. Go to the Debug console to see the measuring events sent to Pusher.

License

MIT

measurearkitpusher's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.