Comments (2)
Problem understood.
From http://sourceforge.net/p/pyserial/code/HEAD/tree/tags/release2_7/CHANGES.txt:
Version 2.6 2011-11-02
Bugfixes:
- [Bug 3093882] calling open() on an already open port now raises an exception
On Ubuntu 14.04:
less /usr/lib/python2.7/less /usr/lib/python2.7/dist-packages/serial/init.py shows:
VERSION = '2.6'
On the working Ubuntu 12.04 system, the same command shows VERSION = '2.5'
The actual code which throws the exception is in serialposix.py:
def open(self):
"""Open port with current settings. This may throw a SerialException
if the port cannot be opened."""
if self._port is None:
raise SerialException("Port must be configured before it can be used.")
if self._isOpen:
raise SerialException("Port is already open.")
I confirmed by opening a port in python manually that it does throw that exception.
So the root cause is the API changed between pySerial 2.5 used on Ubuntu 12.04 and pySerial 2.6 used on Ubuntu 14.04. The solution is the open() statement has to be removed in Indigo. I'll submit a pull request for the github official turtlebot repo in a little while, which will fix some other breaks in the turtlebot build, but someone should fix the yujinrobot repo.
from turtlebot_create.
Fixed with this merge: #18
from turtlebot_create.
Related Issues (20)
- Remove laser plugin for Gazebo HOT 1
- Add bugtracker and repo info to package.xml
- update ros wiki HOT 3
- sci error has lost user friendly warning HOT 3
- cannot connect on indigo HOT 7
- setup.bash from turtlebot repo overwrites env vars with kobuki values HOT 1
- iRobot Create2 HOT 5
- [WIP] Add Wifi/BT support
- Cannot load create.urdf.xacro in ROS jade HOT 2
- PyKDL HOT 3
- mu parameters too low for the drive wheels
- "Error: No link elements found in urdf file" upon check_urdf command HOT 1
- Question: I cannot find any useful instruction for this usage in imu datasheet HOT 1
- question: about imu_data.angular_velocity correction. HOT 1
- ERROR: cannot launch node of type [create_node/turtlebot_node.py]: can't locate node [turtlebot_node.py] in package [create_node] HOT 1
- Sometime it produces warning "Distance, angle displacement too big, invalid readings from robot." and connection lost for a while HOT 3
- roslib -> rosgraph, rospkg calls HOT 1
- Correct python imports
- Hydro release HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turtlebot_create.