5 seconds Time Lag for machine to react to command
We are using ROS with Arduino. When inputting command, it take about 5 seconds for the machine to react to the command. We are not sure why there is such a long lag.
Asked by lumatas on 2018-09-14 18:25:33 UTC
Comments
which command? how are you connected to the arduino? you should provide a little bit more information..
Asked by alsora on 2018-09-14 19:14:38 UTC
We are using a miniPC-P4 (running ROS) connected by USB cable to the Arduino. We have discovered when we sent command (like start and stop a motor). It takes roughly 5 secs before the motor turns on or off. We are thinking the ROS may be causing the delay.
Asked by lumatas on 2018-09-14 20:13:59 UTC
Could well be true, but with the absolute minimum of information that you provide us, it could be anything.
You'll have to either:
In the past, tight loops on ..
Asked by gvdhoorn on 2018-09-15 01:46:28 UTC
.. the Arduino side, not calling
ros::spinOnce()
at appropriate times, blasting msgs at the Arduino at 10kHz, not using the correct (or maximum supported) baudrate and more such things have resulted in similar observations.We're going to need more information to be able to say anything.
Asked by gvdhoorn on 2018-09-15 01:49:53 UTC