Open rflmota opened 10 years ago
I don't believe that the nh.spinOnce() should be in the setup.
Hi @tonybaltovski , First of all, thank you for your attention... Regarding your suggestion, I already tried deleting the 'nh.spinOnce()' calls from setup() but the problems persist...
No worries. Try increasing the delay in the Arduino loop?
Already tried that too, and still giving me the same problems... :s
Hey! Did you find any solution to your problem of "Unable to sync device"?? I have been having the same problem and I have seen that whenever I call a function from the loop, it gives me that error. I have tried including spinOnce() throughout the code (except for the Setup(). )
When I remove that function, the sync works perfectly. I have tried searching on a lot of other similar problems but could not find an answer. Please do let me know if you were able to get a solution to it. Thanks!
@rflmota , forgot to tag you in that post.
Maybe this will help: http://answers.ros.org/question/164191/rosserial-arduino-cant-connect-arduino-micro/
Someone should add this tip to the wiki Paul On Nov 10, 2014 10:48 PM, "Isura Ranatunga" notifications@github.com wrote:
Maybe this will help:
http://answers.ros.org/question/164191/rosserial-arduino-cant-connect-arduino-micro/
— Reply to this email directly or view it on GitHub https://github.com/ros-drivers/rosserial/issues/97#issuecomment-62505084 .
I still am having this issue after following all steps listed above. I'm using an Arduino Uno and Indigo, with a fresh reinstall of the rosserial_arduino package, and having just re-ran make_libraries.
I'm facing same problem, but somehow when I'm using launch file from rosserial_server [roslaunch rosserial_server serial.launch port:=/dev/ttyUSB0] there is no error and can monitor the message using rostopic echo as well. maybe you can try this one.
hendriyawan
I am using ROS indigo, but actually rolled back just the Arduino to Hydro code and the arduino works again for me.
I had a similar issue recently, where my arduino would sometimes sync just fine, and other times when it couldn't sync. i resolve the issue by adding a delay(1000); command right after the nh.init(), nh.subscribe(...), nh.advertise(...) commands in the setup loop
I've this sketch developed with rosserial_arduino:
The problem is that I'm trying to running it with rosserial_python serial_node and sometimes it works and sometime it doesn't... Normally it just works when I finish uploading the sketch to the Arduino board... The other times I just keep getting the error message:
I've tried to running with rosserial_server serial_node, it appears to work besides I got the following warnings:
I'm using the following messages definition:
. . . which are compounded by the following messages :
I must add I'm using the latest version of ROS Hydro w/ the latest version of rosserial checked out from this repository...
Can someone help me solving this issue?!
Thanks in advance ! ;)