iOS-CoreMotion-Example - Core Motion in iOS using Swift

  •        426

Users generate motion events when they move, shake, or tilt the device. These motion events are detected by the device hardware, specifically, the accelerometer and the gyroscope. The Core Motion framework lets your application receive motion data from the device hardware and process that data. Now create an instance of CMMotionManager object. The app can use it to receive four types of motion: raw accelerometer data, raw gyroscope data, raw magnetometer data, and processed device-motion data (which includes accelerometer, rotation-rate, and attitude measurements).

https://github.com/maximbilan/iOS-CoreMotion-Example

Tags
Implementation
License
Platform

   




Related Projects

MotionKit - Get the data from Accelerometer, Gyroscope and Magnetometer in only Two or a few lines of code

  •    Swift

Now you can grab the data from Accelerometer, Magnetometer, Gyroscope and Device Motion in a magical way, with just a Two or a few lines of code. Fully compatible with both Swift and Objective-C. A nice and clean wrapper around the CoreMotion Framework written entirely in Swift. The Core Motion framework lets your application receive motion data from device hardware and process that data. The data can be retrieved from Accelerometer, Gyroscope and Magnetometer. You can also get the refined and processed gyroscope and accelerometer data from the deviceMotion datatype itself instead of getting the raw values.

cordova-background-geolocation-lt - The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android

  •    Objective-C

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android. The plugin's Philosophy of Operation is to use motion-detection APIs (using accelerometer, gyroscope and magnetometer) to detect when the device is moving and stationary.

react-native-background-geolocation - Sophisticated, battery-conscious background-geolocation with motion-detection

  •    Objective-C

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android. The plugin's Philosophy of Operation is to use motion-detection APIs (using accelerometer, gyroscope and magnetometer) to detect when the device is moving and stationary.

ArcKit - Location, motion, and activity recording framework for iOS

  •    Swift

A machine learning based location and activity recording and detection framework for iOS. Note: The above settings are all on by default. The above snippets are unnecessary, and just here to show you some of the available options.

LocoKit - Location, motion, and activity recording framework for iOS

  •    Swift

A Machine Learning based location recording and activity detection framework for iOS. LocoKit is an LGPL licensed open source project. Its ongoing development is made possible thanks to the support of its backers on Patreon.


Shiny - Iridescent Effect View (inspired by Apple Pay Cash) ✨

  •    Swift

Shiny is an iOS library that generates an iridescent effect view matched to the gyroscope, similar to the Apple Pay Cash card in the Wallet app. You must call startUpdates() for the instance to observe motion changes. Calling stopUpdates() on the instance will stop motion updates.

OpenSfM - Open source Structure-from-Motion pipeline

  •    Python

OpenSfM is a Structure from Motion library written in Python. The library serves as a processing pipeline for reconstructing camera poses and 3D scenes from multiple images. It consists of basic modules for Structure from Motion (feature detection/matching, minimal solvers) with a focus on building a robust and scalable reconstruction pipeline. It also integrates external sensor (e.g. GPS, accelerometer) measurements for geographical alignment and robustness. A JavaScript viewer is provided to preview the models and debug the pipeline.

TLTiltHighlightView - A horizontal gradient which adjusts its appearance based on the positional attitude of an iOS device

  •    Objective-C

TLTiltHighlightView is a UIView subclass with a horizontal gradient which adjusts its appearance based on the positional attitude of the device. The movement of the gradient when re-orientating the device is subtle – it's meant to augment keylines. This mimics the iOS 6 Music app (notice the gradient keylines at the very top and bottom of the images). Drag TLTiltHighlightView.h and TLTiltHighlightView.m into your project. Make sure to add QuartzCore and CoreMotion to the list of libraries you link against.

free_gait - An Architecture for the Versatile Control of Legged Robots

  •    C++

NOTICE: This software is not supported anymore! The authors of this software have changed their affiliation and do not work on this project anymore. Please excuse any inconvenience this might cause. If you are interested in working with the ANYmal robot, please reach out to ANYbotics. Free Gait is a software framework for the versatile, robust, and task-oriented control of legged robots. The Free Gait interface defines a whole-body abstraction layer to accommodate a variety of task-space control commands such as end effector, joint, and base motions. The defined motion tasks are tracked with a feedback whole-body controller to ensure accurate and robust motion execution even under slip and external disturbances. The application of this framework includes intuitive tele-operation of the robot, efficient scripting of behaviors, and fully autonomous operation with motion and footstep planners.

homebridge-camera-ffmpeg - ffmpeg plugin for homebridge.

  •    Javascript

This is an optional feature that will automatically store every snapshot taken to your Google Drive account as a photo. This is very useful if you have motion sensor in the same room as the camera, as it will take a snapshot of whatever caused the motion sensor to trigger, and store the image on Google Drive and create a Picture Notification on your iOS device. The snapshots are stored in a folder called "Camera Pictures", and are named with camera name, date and time of the image.

data-driven-motion - Easily animate your data in react

  •    Javascript

This is a small wrapper around react-motion with the intention of simplifying the api for my most common use case.

motion - An Android library allowing images to exhibit a parallax effect that reacts to the device's tilt

  •    Java

An Android library allowing images to exhibit a parallax effect. By replacing static pictures and backgrounds with a fluid images that reacts to screen tilt and orientation, Android applications can add a perceived depth, layering, and context to their content. Motion works great for both full screen background images and smaller sized pictures to give users a whole new perspective on how they interact with their phone. This project was inspired in part by iOS 7's new parallax effect. Feel free to download the demo to try out motion.

LeapMotionAS3 - Leap Motion AS3 API.

  •    ActionScript

This is the AS3 framework for working with Leap Motion. Leap Motion is a motion-control software and hardware company developing the world's most powerful and sensitive 3D motion-control and motion-sensing technology.

parallax - Parallax Engine that reacts to the orientation of a smart device

  •    Javascript

Parallax Engine that reacts to the orientation of a smart device. Where no gyroscope or motion detection hardware is available, the position of the cursor is used instead. Many thanks to the fine folks over at cdnjs for hosting our library.

Theseus - An open-source iOS personal analytics tool

  •    Objective-C

Theseus is an open-source personal tracking tool that uses your iPhone's location and motion sensors to help you track and visualize where you spend your time. It's very similar to Moves or Google Latitude. One key difference between Theseus and other similar apps is its approach to privacy and data accessibility. By default, your data never leaves your phone; all processing happens on-device rather than an external server. If you want to access your data for personal usage, Theseus can export your data to Dropbox in JSON format for easy access.

motion-xray - An iOS Inspector that runs inside your app, so you can debug and analyze from your device in real-world situations

  •    Ruby

Developer tools for iOS. Runs on the device, no browser or computer needed. And if you want the email features, add app.frameworks << 'MessageUI' to your Rakefile.

ISHPermissionKit - A polite and unified way of asking for permission on iOS

  •    Objective-C

ISHPermissionKit provides a polite and unified way of asking for permission on iOS. It also provides UI to explain the permission requirements before presenting the system permission dialog to the user. This allows the developer to postpone the system dialog. The framework provides no actual chrome, leaving the developer and designer in charge of creating the views. While you can use ISHPermissionKit to ask for a user's permission for multiple categories at the same time and out of context, you should continue to ask for permission only when the app needs it. However, there might be occassions when multiple permissions are required at the same time, e.g., when starting to record location and motion data.

fairmotion - Tools to load, process and visualize motion capture data

  •    Python

fairmotion provides easy-to-use interfaces and tools to work with motion capture data. The objective of the library is to manage the complexity of motion representation, 3D transformations, file formats and visualization, and let users focus on high level learning tasks. Users can take advantage of large high-quality motion capture datasets like the CMU and AMASS datasets without deep knowledge of the domain or handling the idiosyncrasies of individual datasets. We implement baselines for research tasks using building blocks from the library to demonstrate its utility.

react-motion-ui-pack - Wrapper component around React Motion for easier UI transitions

  •    Javascript

Please use react-spring for all of your animation needs. React Motion is an amazing animation library for React. React Motion UI Pack tries to help ease entry level / common use cases with React Motion by providing a higher level way to work with it and create common UI transitions easier. If you need more complex animations I suggest using React Motion directly.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.