error with rosserial_python node

asked 2016-11-25 05:12:36 -0500

wicked88 gravatar image

I started to get this error in rosserial_python with arduino with this traceback :

 traceback (most recent call last):
 File "/opt/ros/kinetic/lib/rosserial_python/", line 85, in <module>
 File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosserial_python/", line 503, in run
 File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosserial_python/", line 389, in requestTopics
 File "/home/lar/.local/lib/python2.7/site-packages/serial/", line 512, in flushInput
 File "/home/lar/.local/lib/python2.7/site-packages/serial/", line 556, in reset_input_buffer
 termios.tcflush(self.fd, termios.TCIFLUSH)
 termios.error: (5, 'Input/output error')
 [ERROR] [1480067138.962050]: bad callback: <bound method Subscriber.callback of                    <rosserial_python.SerialClient.Subscriber instance at 0x7fdf8e465710>>
 Traceback (most recent call last):
   File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/", line 720, in _invoke_callback
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosserial_python/", line 137, in callback
  self.parent.send(, data_buffer.getvalue())
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosserial_python/", line 698, in send
  File "/home/lar/.local/lib/python2.7/site-packages/serial/", line 537, in write
  raise SerialException('write failed: {}'.format(v))
  SerialException: write failed: [Errno 5] Input/output error

It works and runs for a while and then .... SNAP, throws this.

Help PLEASE !!

edit retag flag offensive close merge delete


Need help, please !

wicked88 gravatar image wicked88  ( 2016-11-28 05:07:08 -0500 )edit

I would report this at the rosserialissue tracker. Include relevant information (like if you built things from source, versions, hw used, etc).

gvdhoorn gravatar image gvdhoorn  ( 2016-11-28 05:17:08 -0500 )edit

this might be related to the CPU being used too much, causing the serial connection to break

Void gravatar image Void  ( 2019-01-26 14:57:45 -0500 )edit