问题:
终端运行下面代码时
rosrun rosserial_python serial_node.py /dev/ttyUSB0
报错:
[ERROR] [1605179908.248997]: Creation of publisher failed: unknown error handler name 'rosmsg'
[ERROR] [1605179909.251662]: Tried to publish before configured, topic id 125
[ERROR] [1605179910.262239]: Tried to publish before configured, topic id 125
[ERROR] [1605179910.276115]: Creation of publisher failed: unknown error handler name 'rosmsg'
解决方法:
终端中输入
sudo apt-get install ros-kinetic-genpy
【注意】上面命令中kinetic需要修改为你的ros版本号
安装完成后,再次运行时就正确了