← Back

ofxMetaMotion

github.com/Mach1Studios/ofxMetaMotion · @Mach1Studios
OF 0.11 Hardware Interface

OpenFrameworks addon for mBientLab MetaMotion and similar API devices

3 2 Last commit 4y ago Created 5y ago

Forks

Forks pushed to more recently than Mach1Studios/ofxMetaMotion itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.

carthach/ofxMetaMotion by @carthach · ★ 0 · pushed 1y ago
k2rek/ofxMetaMotion by @k2rek · ★ 0 · pushed 3y ago

Branches ahead of main

These branches have commits not yet on main — could be unmerged fixes or work in progress worth a look.

feature/usb-data-transmission 3 commits ahead · last commit 4y ago
feature/universal-binary 2 commits ahead · last commit 5y ago

README

ofxMetaMotion



MetaMotion addon for OpenFrameworks, automatically searches for MetaMotion device via BLE device name MetaWear, connects to the device and streams the Euler orientation angles from the MetaMotion device.

Setup



MacOS

rsync -aved "$OF_PATH/addons/ofxMetaMotion/libs/libmetawear/lib/osx/libmetawear.dylib" "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/";
install_name_tool -id @executable_path/../Frameworks/libmetawear.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/Frameworks/libmetawear.dylib";
install_name_tool -change libmetawear.dylib @executable_path/../Frameworks/libmetawear.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Contents/MacOS/$PRODUCT_NAME";


Quick example:



ofApp.h

``cpp metamotionController mmc;

ofApp.cpp 
cpp // in ofApp::setup() mmc.setup(); // in ofApp::update() mmc.update(); // update handles device searching and auto-connection mmc.getAngle();
``

Get this addon

HTTPS
SSH