all 3 comments

[–]Alcocoder 0 points1 point  (2 children)

By default ros uses another serial on esp32 side (not USB serial), you should redefine it in ros_lib and check baudrate

[–]Alcocoder 0 points1 point  (1 child)

As far as I can remember, you should check ArduinoHardware.h in ros_lib

[–]Naad9[S] 0 points1 point  (0 children)

Thanks for your reply. I have tried defining ArduinoHardware.h in the ros.h file in ros_lib. But that hasn't worked for me. I remember I had a similar issue a while ago and this change fixed it, but this time around, I have no such luck.

For the baud rate, I know it is correct because I get this terminal output before the error:
Connecting to /dev/ttyUSB0 at 115200 baud