Error using esp32 with ros_serial

asked 2020-09-08 13:53:39 -0500

darthShana gravatar image

HI All

Im trying to get my esp32 to publish to a ros topic… Im looking for the simplest way to do this…

I followed

http://wiki.ros.org/rosserial_arduino...

I think i have setup the IDE correctly, when i run the hello world example

http://wiki.ros.org/rosserial_arduino...

When uploading the scetch i get

esptool.py v2.6`
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: a4:cf:12:32:01:80
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 47...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 32836.9 kbit/s)...
Hash of data verified.
Compressed 15856 bytes to 10276...
Wrote 15856 bytes (10276 compressed) at 0x00001000 in 0.1 seconds (effective 885.8 kbit/s)...
Hash of data verified.
Compressed 315040 bytes to 168136...
Wrote 315040 bytes (168136 compressed) at 0x00010000 in 2.6 seconds (effective 986.2 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 128...
Wrote 3072 bytes (128 compressed) at 0x00008000 in 0.0 seconds (effective 6971.9 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

which looks ok to me when i run

rosrun rosserial_python serial_node.py /dev/ttyUSB0

i get

[INFO] [1599510925.409088]: Protocol version of client is unrecognized, expected Rev 1 (rosserial 0.5+)
[ERROR] [1599510925.564204]: Mismatched protocol version in packet ('\xce'): lost sync or rosserial_python is from different ros release than the rosserial client
[INFO] [1599510925.570119]: Protocol version of client is unrecognized, expected Rev 1 (rosserial 0.5+)
[ERROR] [1599510925.577611]: Mismatched protocol version in packet ('\xbd'): lost sync or rosserial_python is from different ros release than the rosserial client

any help would be greatly appreciated

edit retag flag offensive close merge delete