ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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

asked 2020-09-09 02:06:01 -0500

ROS FAN gravatar image

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?

edit retag flag offensive close merge delete

Comments

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?

parzival gravatar image parzival  ( 2020-09-10 02:16:40 -0500 )edit

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.

ROS FAN gravatar image ROS FAN  ( 2020-09-10 19:29:21 -0500 )edit

AFAIK, rosserial_python is the best package for the job. Are you sure the port name is /dev/ttyACM0?

parzival gravatar image parzival  ( 2020-09-13 02:14:49 -0500 )edit

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:

[INFO] [1599634137.435236]: Connecting to /dev/ttyACM0 at 57600 baud
ROS FAN gravatar image ROS FAN  ( 2020-09-13 10:43:48 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-09-22 02:09:57 -0500

ROS FAN gravatar image

Finally, by writing the serial communication program myself, I solved this problem. But it is no thing to do with ROS.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2020-09-09 02:06:01 -0500

Seen: 531 times

Last updated: Sep 22 '20