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

struct error #9

Open
tiesus opened this issue Nov 2, 2021 · 0 comments
Open

struct error #9

tiesus opened this issue Nov 2, 2021 · 0 comments
Assignees

Comments

@tiesus
Copy link

tiesus commented Nov 2, 2021

When i read the a1 package from an OpenImu300RI connected via a rs232toUSB converter, the driver throws approximately every second start the following error:

ROS DISTRO: noetic
Device: OpenIMU300RI 5020-3309-01 03.01.08 Firmware: VG_AHRS_J1939 03.01.09

Traceback (most recent call last):
File "/catkin_ws/src/ros_openimu/scripts/openimu_driver.py", line 57, in <module> readback = openimu_wrp.readimu()
File "/catkin_ws/src/ros_openimu/scripts/openimu_driver.py", line 34, in readimu readback = self.openimudev.getdata('a1')
File "/catkin_ws/src/ros_openimu/src/aceinna/tools/openimu.py", line 65, in getdata time_ms = struct.unpack('I', bytes(readback[0:4]))[0] #unin32
struct.error: unpack requires a buffer of 4 bytes

@ROS-Aceinna ROS-Aceinna self-assigned this Nov 4, 2021
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

2 participants