You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I unsync the myo (by removing it from my arm), on_pose() is triggered in my DeviceListener class prior to on_arm_unsynced().
This results in a ValueError when I try to access the pose event data in my callback: ValueError: 65535 is not a valid Pose.
As a workaround, I have added a try/except block to my on_pose() callback. After handling the error with the try/except, I see that that the on_arm_unsynced() callback is triggered immediately after the on_pose() callback. But I am not sure why on_pose() was called in the first place and with an invalid pose value.
The text was updated successfully, but these errors were encountered:
Hey @jmw182 , that sounds like an issue coming from the driver. I would be surprised if that invalid value was somehow introduced by a bug in the wrapper. Is this something that happens consistently or only under particular circumstances?
Hi @NiklasRosenstein, thanks for responding. When I was testing this it appeared to happen consistently any time the myo was removed from the arm. I also don't have a myo with me at the moment to test (the lab I work at has one myo that I have handed off to a student for testing with the app I wrote).
The workaround of catching the exception is working fine for us, but for other users it would be good to find a way to intercept the invalid pose the driver sends and ignore it, rather than triggering the callback and and exception.
If I get my hands on the myo again I can try to investigate further. Or maybe this issue can be labeled "help needed" to try to get help from other users?
Sad to hear that you don't have a myo anymore, this is a great library and the myo is still a nice device that I hope will get revived eventually (I think "Meta" reality labs has the IP and is doing something with it).
When I unsync the myo (by removing it from my arm),
on_pose()
is triggered in my DeviceListener class prior toon_arm_unsynced()
.This results in a ValueError when I try to access the pose event data in my callback:
ValueError: 65535 is not a valid Pose.
As a workaround, I have added a try/except block to my
on_pose()
callback. After handling the error with the try/except, I see that that theon_arm_unsynced()
callback is triggered immediately after theon_pose()
callback. But I am not sure whyon_pose()
was called in the first place and with an invalid pose value.The text was updated successfully, but these errors were encountered: