ros-drivers / rosserial

A ROS client library for small, embedded devices, such as Arduino. See: http://wiki.ros.org/rosserial
515 stars 525 forks source link

rosserial lost with device arduino #188

Open dmngu9 opened 9 years ago

dmngu9 commented 9 years ago

i know this issue happened in the past before but seems like no appropriate answers are posted yet. i am using mega board with ros. i have lost sync error sometimes. I managed to make it works somehow few weeks ago. But now problem suddenly appears again

can anyone please post any solution for this issue? should i use different microcontroler?

kk6axq commented 9 years ago

I have the same issue. I documented it here: http://answers.ros.org/question/215687/rosserial-arduino-connectivity-problem/

kk6axq commented 9 years ago

Are you using the Servo.h library in your Arduino code? I saw somewhere that that could be the cause of the problem but it didn't seem to work for me. It might work for you...

dmngu9 commented 9 years ago

i used servo library. I noticed that if my servo changed direction suddenly from 0 to 180 and vice versa repeatedly. lost sync occurs. Its fairly weird

kk6axq commented 9 years ago

I get something similar but I found that if I restart the computer that rosserial is running on it works. Do any of the devs know why this could be happening.