but when I publish a command to the topic that the node subscribes to I get the following error:
Exception in thread Thread-6:
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 778, in processWriteQueue
self._send(topic, msg)
File "/home/ubuntu/catkin_ws/src/rosserial/rosserial_python/src/rosserial_python/SerialClient.py", line 758, in _send
topic_bytes = struct.pack('<h', topic)
struct.error: short format requires (-0x7fff - 1) <= number <= 0x7fff
[INFO] [1632597808.464485]: Sending tx stop request
This error seems a bit cryptic and I am not quite sure how to tackle it. Any ideas what it may be due to?
I have the same issue.
Didn't find anything on the internet to fix this.
Some people suggested to update python but it didn't help.
Did you get it fixed?
I am running a
rosserial
node on an Arduino, I am using ROS Noetic. I initialize the node using the following:The connection is established as shown below:
I publish the msg from the command line:
but when I publish a command to the topic that the node subscribes to I get the following error:
This error seems a bit cryptic and I am not quite sure how to tackle it. Any ideas what it may be due to?