我已按照教程设置Arduino IDE并将Hello World sketch加载到我的Arduino。
当我跑步时:
rosrun rosserial_python serial_node.py /dev/ttyUSB0
我明白了:
[INFO] [WallTime: 1461790180.244609] ROS Serial Python Node
[INFO] [WallTime: 1461790180.250091] Connecting to /dev/ttyUSB0 at 57600 baud
[WARN] [WallTime: 1461790182.835996] Serial Port read returned short (expected 72 bytes, received 60 instead).
[WARN] [WallTime: 1461790182.836598] Serial Port read failure:
[INFO] [WallTime: 1461790182.837084] Packet Failed : Failed to read msg data
[INFO] [WallTime: 1461790182.837400] msg len is 8
[ERROR] [WallTime: 1461790183.831731] Tried to publish before configured, topic id 125
重复。
这曾经有过,但我不记得发生了什么变化。我卸载了所有ROS组件并重新安装了教程之后的所有内容,但问题仍然存在。
我正在使用Ubuntu 14.04与ROS Indigo和arduino-1.6.8
如果重要的话,我正在使用virtualenv并且必须pip install pyserial和rospkg。这在教程中没有提到。