这是出现的问题:
mylove@ubuntu:~$ rosrun rosserial_python serial_node.py /dev/ttyUSB0
[INFO] [WallTime: 1522882948.712595] ROS Serial Python Node[INFO] [WallTime: 1522882948.740678] Connecting to /dev/ttyUSB0 at 57600 baud
Traceback (most recent call last):
File "/home/mylove/catkin_ws/src/rosserial/rosserial_python/nodes/serial_node.py", line 88, in <module>
client = SerialClient(port_name, baud, fix_pyserial_for_test=fix_pyserial_for_test)
File "/home/mylove/catkin_ws/src/rosserial/rosserial_python/src/rosserial_python/SerialClient.py", line 358, in __init__
self.port = Serial(port, baud, timeout=self.timeout, write_timeout=10)
TypeError: __init__() got an unexpected keyword argument 'write_timeout'
arduino的源码:
#include <ros.h>
#include <std_msgs/String.h>
ros::Nod