Giter Club home page Giter Club logo

ros_myo's Introduction

Overview

This ROS package creates a ROS node which publishes raw data from the Thalmic Labs Myo Armband (tested with firmware version 1.1.4.2, 1.0.2.2, probably working with anythong >1.0) in the form of both standard and custom ROS messages. These messages can be subscribed to and used in standard ROS architectures.

I found the original code not completely working so I patched and cleaned a bit.

Special thanks to Danny Zhu for creating the initial myo-raw interface, which allowed for access to the raw data streaming from the Myo.

Requirements

Topics and Messages

There are a few topics generated by the myo-rawNode.py node. These are:

  1. /myo_raw/myo_arm - ros_myo/MyoArm message telling which arm and direction of X axis is (supposedly) worn.
  2. /myo_raw/myo_emg - ros_myo/EmgArray message with the EMG readings.
  3. /myo_raw/myo_gest - ros_myo/MyoPose message with the pose/gesture ID.
  4. /myo_raw/myo_gest_str - std_msgs/String with the pose/gesture name.
  5. /myo_raw/myo_imu - a standard IMU message with quaternion pose, accelerometer and gyro axes.
  6. /myo_raw/myo_ori - Vector3 containing roll, pitch, yaw in radians.
  7. /myo_raw/myo_ori_deg - Vector3 containing roll, pitch, yaw in degrees.
  8. /myo_raw/vibrate - UInt8 topic to publish vibration to make, accepts values 1, 2, 3. The higher the value the longer the vibration.

Note that for the pose/gestures to be published you need to do the sync gesture first.

Other demos

With the node running.

roslaunch ros_myo myo.launch

To observe the EMG data you can run:

rosrun ros_myo emg_ascii_graph.py
EMG values:
###############################################################################
████████████████████████████████████████████████████████████████  2048  MAX_VAL
███                                                                119  EMG #0 
██                                                                  72  EMG #1 
██████                                                             204  EMG #2 
████████████████                                                   537  EMG #3 
████                                                               153  EMG #4 
█                                                                   47  EMG #5 
██                                                                  93  EMG #6 
█                                                                   49  EMG #7

License

ros_myo is released with the MIT License. For full terms and conditions, see the LICENSE file

ros_myo's People

Contributors

awesomebytes avatar carlosjoserg avatar mirkoferrati avatar andreucm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.