This works in general, thanks. But unfortunatly it does not solve my problem. I get the following error messages (after a lot of “wrong checksum for topic id and msg”, “wrong checksum for msg length, length 56” messages.
[INFO] [1525967645.162604]: Protocol version of client is unrecognized, expected Rev 1 (rosserial 0.5+)
[INFO] [1525967645.525580]: wrong checksum for topic id and msg
[ERROR] [1525967645.529966]: Mismatched protocol version in packet: lost sync or rosserial_python is from different ros release than the rosserial client
[INFO] [1525967645.534823]: Protocol version of client is unrecognized, expected Rev 1 (rosserial 0.5+)
Traceback (most recent call last):
File "/opt/husarion/tools/rpi-linux/ros-core2-client", line 89, in <module>
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosserial_python/SerialClient.py", line 504, in run
File "/opt/ros/kinetic/lib/python2.7/dist-packages/rosserial_python/SerialClient.py", line 107, in handlePacket
File "/opt/ros/kinetic/lib/python2.7/dist-packages/geometry_msgs/msg/_PoseStamped.py", line 142, in deserialize
raise genpy.DeserializationError(e) #most likely buffer underfill
genpy.message.DeserializationError: unpack requires a string argument of length 56
I show the pose message with rostopic echo pose in another terminal window.
After increasing the delay to 50 milliseconds it seems to work better which means it does not stop after ~1000 msgs but after ~10000.