Traceback (most recent call last):
File "/home/kory/catkin_ws/src/ros_myo/scripts/myo-rawNode.py", line 444, in
m.run(1)
File "/home/kory/catkin_ws/src/ros_myo/scripts/myo-rawNode.py", line 204, in run
self.bt.recv_packet(timeout)
File "/home/kory/catkin_ws/src/ros_myo/scripts/myo-rawNode.py", line 87, in recv_packet
self.handle_event(ret)
File "/home/kory/catkin_ws/src/ros_myo/scripts/myo-rawNode.py", line 120, in handle_event
h(p)
File "/home/kory/catkin_ws/src/ros_myo/scripts/myo-rawNode.py", line 300, in handle_data
typ, val, xdir = unpack('3B', pay)
File "/home/kory/catkin_ws/src/ros_myo/scripts/common.py", line 7, in unpack
return struct.unpack('<' + fmt, *args)
struct.error: unpack requires a string argument of length 3
Adding a small change to the code to unpack the full list of 6 values makes this work.
Traceback (most recent call last): File "/home/kory/catkin_ws/src/ros_myo/scripts/myo-rawNode.py", line 444, in
m.run(1)
File "/home/kory/catkin_ws/src/ros_myo/scripts/myo-rawNode.py", line 204, in run
self.bt.recv_packet(timeout)
File "/home/kory/catkin_ws/src/ros_myo/scripts/myo-rawNode.py", line 87, in recv_packet
self.handle_event(ret)
File "/home/kory/catkin_ws/src/ros_myo/scripts/myo-rawNode.py", line 120, in handle_event
h(p)
File "/home/kory/catkin_ws/src/ros_myo/scripts/myo-rawNode.py", line 300, in handle_data
typ, val, xdir = unpack('3B', pay)
File "/home/kory/catkin_ws/src/ros_myo/scripts/common.py", line 7, in unpack
return struct.unpack('<' + fmt, *args)
struct.error: unpack requires a string argument of length 3
Adding a small change to the code to unpack the full list of 6 values makes this work.