Skip to content

Commit

Permalink
Merge pull request #1160 from clearpathrobotics/improve-sort-rosnode-…
Browse files Browse the repository at this point in the history
…info

Sort output of rosnode info
  • Loading branch information
dirk-thomas authored Oct 4, 2017
2 parents 695baab + cfedd75 commit 21ddc9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/rosnode/src/rosnode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,9 +491,9 @@ def topic_type(t, pub_topics):
pub_topics = master.getPublishedTopics('/')
except socket.error:
raise ROSNodeIOException("Unable to communicate with master!")
pubs = [t for t, l in state[0] if node_name in l]
subs = [t for t, l in state[1] if node_name in l]
srvs = [t for t, l in state[2] if node_name in l]
pubs = sorted([t for t, l in state[0] if node_name in l])
subs = sorted([t for t, l in state[1] if node_name in l])
srvs = sorted([t for t, l in state[2] if node_name in l])

buff = "Node [%s]"%node_name
if pubs:
Expand Down

0 comments on commit 21ddc9f

Please sign in to comment.