Skip to content

IndexError: bytearray index out of range #15

@vitorhirozawa

Description

@vitorhirozawa

I run the roslaunch imu.launch, then it works good, despite it shows a warning message periodically "Something bad when reading". This warning suggests that some readings of imu are lost.
But the problem is not the warning. After 2 hours, more or less, the node crashes, raising an exception:
"IndexError: bytearray index out of range" in line 224 of bosch_imu_node.py.

image

I have tested it more than 3 times and it still with the same behavior. I also have tested with another imu board that has the same model, but nothing has changed.

I am using an Adafruit board with bno055 connected to an UART-USB converter (FTDI).

lsusb command shows information about the FDTI:
Bus 001 Device 029: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC

The FTDI is connected to one USB port of Intel NUC with Ubuntu 18.04.4 LTS bionic and ROS melodic.

Is there a workaround for this problem?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions