Stingray Myo Plugin

This is a Stingray plugin for the Thalmic Myo armband.

[Stingray Myo plugin sample showing EMG data]

Dependencies

  • Myo SDK (Windows) v0.9.0
  • Autodesk Stingray v1.4 (source code)

Setup

  1. Place the plugin's project files in the Stingray build folder:
.\\runtime\\plugins\\myo_plugin
  1. 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
  1. Edit
    make.rb
	
	if $options[:myo] == nil
		command += " --use-myo"
	end
  1. make_options.rb
	opts.on("--[no-]use-myo", "Enable Myo plug-in support") { |v| options[:myo] = v }
  1. make_switch.rb
	content += get_cmake_set_command("ENGINE_USE_MYO", $options[:myo])

and

	command << "myo" if $options[:myo]
  1. .\\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()
  1. 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