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

Revision history [back]

Just updating that the gcc7-fixes branch still appears to work as explained by hericles whilst the noetic-devel still doesn't work with noetic for fairly simple stuff with arduino at least. Noetic-devel complains about unicode strings being converted as per traceback below:

Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/lib/python3.8/threading.py", line 870, in run self._target(self._args, *self._kwargs) File "/home/ubuntu/catkin_ws/src/rosserial/rosserial_python/src/rosserial_python/SerialClient.py", line 799, in processWriteQueue self._write(data) File "/home/ubuntu/catkin_ws/src/rosserial/rosserial_python/src/rosserial_python/SerialClient.py", line 763, in _write self.port.write(data) File "/home/ubuntu/.local/lib/python3.8/site-packages/serial/serialposix.py", line 532, in write d = to_bytes(data) File "/home/ubuntu/.local/lib/python3.8/site-packages/serial/serialutil.py", line 63, in to_bytes raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq)) TypeError: unicode strings are not supported, please encode to bytes: 'ÿþ\x00\x00ÿ\x00\x00ÿ'

Just updating that the gcc7-fixes branch still appears to work as explained by hericles whilst the noetic-devel still doesn't work with noetic for fairly simple stuff with arduino at least. Noetic-devel complains about unicode strings being converted as per traceback below:

Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(self._args, *self._kwargs)
self._target(*self._args, **self._kwargs)
  File "/home/ubuntu/catkin_ws/src/rosserial/rosserial_python/src/rosserial_python/SerialClient.py", line 799, in processWriteQueue
    self._write(data)
  File "/home/ubuntu/catkin_ws/src/rosserial/rosserial_python/src/rosserial_python/SerialClient.py", line 763, in _write
    self.port.write(data)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/serial/serialposix.py", line 532, in write
    d = to_bytes(data)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/serial/serialutil.py", line 63, in to_bytes
    raise TypeError('unicode strings are not supported, please encode to bytes: {!r}'.format(seq))
TypeError: unicode strings are not supported, please encode to bytes: 'ÿþ\x00\x00ÿ\x00\x00ÿ'

'ÿþ\x00\x00ÿ\x00\x00ÿ'