Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unpack() error on Ubuntu/Indigo #14

Open
jsuh719 opened this issue Nov 6, 2015 · 7 comments
Open

unpack() error on Ubuntu/Indigo #14

jsuh719 opened this issue Nov 6, 2015 · 7 comments

Comments

@jsuh719
Copy link

jsuh719 commented Nov 6, 2015

-When running myo-rawNode.py on Ubuntu w/ ROS indigo, it will randomly throw an error
-Sometimes it will freeze right after being called, other times it will run (successfully) for a few seconds before stopping
-The error is always the same:

struct.error: unpack requires a string argument of length 3

-The root issue seems to be with the unpack() call on line 301 of myo-rawNode.py:

typ, val, xdir = unpack('3B', pay)

which in turn calls the following code in common.py:

def unpack(fmt, *args):
    return struct.unpack('<' + fmt, *args)

Any suggestions/explanations of what's going on with struct/unpack?
Thanks!

@jsuh719 jsuh719 changed the title unpack() error unpack() error on Ubuntu/Indigo Nov 6, 2015
@jsuh719
Copy link
Author

jsuh719 commented Nov 6, 2015

issue was fixed
#11

@larasamirammal
Copy link

how it was fixed? @jsuh719

@jsuh719
Copy link
Author

jsuh719 commented Mar 24, 2016

@LaraZubaidia

Line 291 of myo_raw.py
Copy/Paste the link below (clicking it doesn't work)

https://github.com/dzhu/myo-raw/pull/11/files

@larasamirammal
Copy link

Thank You very Much @jsuh719 another little thing do you know why the files generated after running myo.py are empty ? how could I get the files of emg and groy and other stuff ? did you face the same problem?

@jsuh719
Copy link
Author

jsuh719 commented Mar 24, 2016

Glad I could help.
I don't know about the emg files being generated, sorry
You could try a rostopic echo topicFoo > topicFoo.txt to generate a .txt file from the output of rostopic echo

@larasamirammal
Copy link

@jsuh719 they said that the myo-row data generates files of data here after complying myo.py I got 9 files but all of them was empty don't know why ? do you have any idea

Thank you very much for everything

@fengyanWang
Copy link

@larasamirammal The link you got above has failed. Can you send another copy?
https://github.com/dzhu/myo-raw/pull/11/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants