rosrun rosserial_python serial_node.py /dev/ttyACM0 [INFO] [1599634137.432223]: ROS Serial Python Node [INFO] [1599634137.435236]: Connecting to /dev/ttyACM0 at 57600 baud
I have been using the ros-kinecit-rosserial_arduino in order to run a ROS node on arduino.
I have the following error: when I running the following command on the terminal:
rosrun rosserial_python serial_node.py /dev/ttyACM0
the termial stucks in very ofen. Unless I reboot the computer, unfortunately it can work normally for only once and for a short time. It just stucks in 'Connecting to /dev/ttyACM0 at 57600 baud',and nothing will go on.
[INFO] [1599634137.432223]: ROS Serial Python Node
[INFO] [1599634137.435236]: Connecting to /dev/ttyACM0 at 57600 baud
can anyone help me?
Does your arduino work properly well with, say, a simple blink program which doesn't involve ROS libraries at all? Are you sure you have uploaded correct program in the arduino?
Yes, I'm sure that there is nothing wrong with the arduino and the program uploaded. I and my partnershas tried to locate the problem, although we can reproduce the problem, we can't solve it at present. So is there any other ROS package which has the similar functions with rosserial_python? Thans for your reply.
AFAIK, rosserial_python is the best package for the job. Are you sure the port name is /dev/ttyACM0?
Yes, sir. The port name is /dev/ttyACM0. As what I discribe on the issue, the program sometimes can work, but it will lost sync unexpectedly and will stuck in: