OpenFrameworks addon for mBientLab MetaMotion and similar API devices
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.
Branches ahead of main
These branches have commits not yet on main — could be unmerged fixes or work in progress worth a look.
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
- Add
CoreBluetooth.frameworkto the project's target Frameworks within the xcodeproj - Add the following Run Script to your Build Phases
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(); ``
ofxAddons