ros-visualization / rqt_common_plugins

45 stars 132 forks source link

Fix crash of rqt_graph when enable_statistics == true, fixes #428 #438

Closed sosswald closed 7 years ago

sosswald commented 7 years ago

self.edges[sub][topic].keys() returns a list, while next() expects an iterator, which leads to a TypeError: list object is not an iterator exception. Fixed by taking element 0 of the key list instead.

sosswald commented 7 years ago

Sorry, I forgot that this solution only works for Python 2. Superseded by pull request #439 which is also compatible with Python 3.