Robotics StackExchange | Archived questions

Lost sync with device, restarting... when Arduino code have delay

Hello all.

I have a problem with rosserial. I have a mobot that responds to the sensors data. I use a publisher/subscriber for this. The mobot is working fine, but I want it to move backwards for about 1-2 seconds then turn right or left depending on the sensors data. The problem is I'm using delay for this and when I add the delay to my Arduino code, rosserial gives me an error of "Lost sync with device, restarting...".

I have read and implemented a lot of solutions but none are working. Do help please.

Asked by Nelle on 2018-09-04 00:42:47 UTC

Comments

How does this relate to #q302291?

Asked by gvdhoorn on 2018-09-04 02:04:04 UTC

The linked question is one of my other problems. But since the library part is not working, I resorted to the one without it. This question is my other problem.

Asked by Nelle on 2018-09-04 02:43:12 UTC

Answers