error with rosserial_python node
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 !!
Need help, please !
I would report this at the
rosserial
issue tracker. Include relevant information (like if you built things from source, versions, hw used, etc).this might be related to the CPU being used too much, causing the serial connection to break