Stingray Myo Plugin
This is a Stingray plugin for the Thalmic Myo armband.
Dependencies
- Myo SDK (Windows) v0.9.0
- Autodesk Stingray v1.4 (source code)
Setup
- Place the plugin's project files in the Stingray build folder:
.\\runtime\\plugins\\myo_plugin
- Install the Myo v0.9.0 SDK (Windows only for now) into your Stingray libraries folder where all 3rd party dependencies are found. For example:
%SR_LIB_DIR%\\myo-sdk-win-0.9.0
- Edit
make.rb
if $options[:myo] == nil command += " --use-myo" end
-
make_options.rb
opts.on("--[no-]use-myo", "Enable Myo plug-in support") { |v| options[:myo] = v }
-
make_switch.rb
content += get_cmake_set_command("ENGINE_USE_MYO", $options[:myo])
and
command << "myo" if $options[:myo]
-
.\\runtime\\CMakeLists.txt
# Myo plug-in if( ENGINE_USE_MYO ) find_package(Myo REQUIRED) add_compile_options(-DHAS_MYO) install(FILES ${MYO_BINARIES} DESTINATION "${ENGINE_INSTALL_DIR}") endif()
and
if( ENGINE_USE_MYO ) add_subdirectory(${PROJECT_SOURCE_DIR}/plugins/myo_plugin) endif()
- Copy the
.\myo_plugin\FindMyo.cmake
file into the.\cmake
folder.
Building
Build Stingray using the command:
make.rb
This will also build the Myo Plugin. Once built, the namespace "stingray.Myo" will be avilable for use in Stingray through LUA.
LUA Myo API
TODO documentation