ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
There are a couple of possible error scenarios here: either it can't open your serial port, or you don't have a good version of python installed (or something else). Since it still looks like you haven't pasted the complete output from the program, it's hard to tell exactly what is wrong.
If I run rosserial_python and my serial port doesn't exist, I get this message:
$ rosrun rosserial_python serial_node.py /dev/ttyACM0
[INFO] [WallTime: 1458751932.062218] ROS Serial Python Node
[INFO] [WallTime: 1458751932.064663] Connecting to /dev/ttyACM0 at 57600 baud
[ERROR] [WallTime: 1458751932.065596] Error opening serial: could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'
If I run rosserial_python and my version of python is broken, I get this message:
$ rosrun rosserial_python serial_node.py /dev/ttyACM0
/usr/bin/env: python: No such file or directory
2 | No.2 Revision |
There are a couple of possible error scenarios here: either it can't open your serial port, or you don't have a good version of python installed (or something else). Since it still looks like you haven't pasted the complete output from the program, it's hard to tell exactly what is wrong.
If I run rosserial_python and my serial port doesn't exist, I get this message:
$ rosrun rosserial_python serial_node.py /dev/ttyACM0
[INFO] [WallTime: 1458751932.062218] ROS Serial Python Node
[INFO] [WallTime: 1458751932.064663] Connecting to /dev/ttyACM0 at 57600 baud
[ERROR] [WallTime: 1458751932.065596] Error opening serial: could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'
If I run rosserial_python and my version of python is broken, I get this message:
$ rosrun rosserial_python serial_node.py /dev/ttyACM0
/usr/bin/env: python: No such file or directory
UPDATE:
It now looks like you're missing the common_msgs package (which includes diagnostic_msgs). This seems like a step backwards.