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 !!
Asked by wicked88 on 2016-11-25 06:12:36 UTC
Comments
Need help, please !
Asked by wicked88 on 2016-11-28 06:07:08 UTC
I would report this at the
rosserialissue tracker. Include relevant information (like if you built things from source, versions, hw used, etc).Asked by gvdhoorn on 2016-11-28 06:17:08 UTC
this might be related to the CPU being used too much, causing the serial connection to break
Asked by Void on 2019-01-26 15:57:45 UTC