ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
3

rosserial error when publishing IMU data

asked 2013-03-27 12:34:54 -0500

I get the following error when I try to use an Arduino to publish data from an IMU:

balto@T510:~$ rosrun rosserial_python serial_node.py /dev/ttyUSB0
    [INFO] [WallTime: 1364421432.288265] ROS Serial Python Node
    [INFO] [WallTime: 1364421432.288485] Connecting to /dev/ttyUSB0 at 57600 baud
    Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
    Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
    Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
    Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
    Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
    Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
    Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
    [INFO] [WallTime: 1364421434.987086] Note: publish buffer size is 512 bytes
    [INFO] [WallTime: 1364421434.987635] Setup publisher on /imu/data [sensor_msgs/Imu]
    Traceback (most recent call last):
      File "/home/balto/catkin_ws/install/lib/rosserial_python/serial_node.py", line 79, in <module>
        client.run()
      File "/home/balto/catkin_ws/install/lib/python2.7/dist-packages/rosserial_python/SerialClient.py", line 393, in run
        self.callbacks[topic_id](msg)
      File "/home/balto/catkin_ws/install/lib/python2.7/dist-packages/rosserial_python/SerialClient.py", line 99, in handlePacket
        m.deserialize(data)
      File "/opt/ros/groovy/lib/python2.7/dist-packages/sensor_msgs/msg/_Imu.py", line 196, in deserialize
        raise genpy.DeserializationError(e) #most likely buffer underfill
    genpy.message.DeserializationError: unpack requires a string argument of length 72

Any ideas what would cause this error? Thank you in advanced.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2013-05-22 08:42:36 -0500

The message was too large for to published. Created my own message just like the imu message but without the covariance matrices.

edit flag offensive delete link more

Comments

hello Tony, I am facing exactly the same problem. But I could not fix it in Fuerte any suggestion? did you used the same rawimu.h used in hector slam so i can use it directly?

Anas Alhashimi gravatar image Anas Alhashimi  ( 2015-11-20 08:36:22 -0500 )edit

Question Tools

Stats

Asked: 2013-03-27 12:34:54 -0500

Seen: 819 times

Last updated: May 22 '13