ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I fixed it by comment out code like below.
$ roscd create_driver/src/
$ diff create_driver.py create_driver.py.org
213c213
< #self.ser.open()
---
> self.ser.open()
PySerial opens port in constructor, so you need not open explicitly.