Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I was having the same problem. I tracked it down to a "bug" in the 'turtlebot_create/create_driver/src/create_driver.py' file. On line 213 the code tries to open the serial port, but throws an exception because the port is already open from the previous line. This exception is caught by the higher level code in 'turtlebot_create/create_node/nodes/turtlebot_node.py' line 119.

This "bug" is a little odd. It will cause a failure every time! My guess is something has changed in the newer versions of 'pySerial' since this code was originally written.

My quick fix was to comment out line 213 in 'create_driver.py'. Perhaps a better solution would be to fix the exception handler at the higher level. Or maybe line 213 just isn't necessary anymore?

I was having the same problem. I tracked it down to a "bug" in the 'turtlebot_create/create_driver/src/create_driver.py' file. On line 213 the code tries to open the serial port, but throws an exception because the port is already open from the previous line. This exception is caught by the higher level code in 'turtlebot_create/create_node/nodes/turtlebot_node.py' line 119.

This "bug" is a little odd. It will cause a failure every time! My guess is something has changed in the newer versions of 'pySerial' since this code was originally written.

My quick fix was to comment out line 213 in 'create_driver.py'. Perhaps a better solution would be to fix the exception handler at the higher level. Or maybe line 213 just isn't necessary anymore?


I forgot to mention that I'm using pySerial-2.6.

I did a little more digging and according to CHANGES.txt, the new exception was added in version 2.6. So if you are running an older version of pySerial, it won't bother you yet.