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/serial_node.py", line 85, in <module>
 client.run()
 File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosserial_python/SerialClient.py", line 503, in run
 self.requestTopics()
 File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosserial_python/SerialClient.py", line 389, in requestTopics
 self.port.flushInput()
 File "/home/lar/.local/lib/python2.7/site-packages/serial/serialutil.py", line 512, in flushInput
 self.reset_input_buffer()
 File "/home/lar/.local/lib/python2.7/site-packages/serial/serialposix.py", 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/topics.py", line 720, in _invoke_callback
  cb(msg)
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosserial_python/SerialClient.py", line 137, in callback
  self.parent.send(self.id, data_buffer.getvalue())
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosserial_python/SerialClient.py", line 698, in send
  self.port.write(data)
  File "/home/lar/.local/lib/python2.7/site-packages/serial/serialposix.py", 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

Comments

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