Skip to content

Commit

Permalink
Merge pull request #233 from trainman419/plot_subscribed_topics
Browse files Browse the repository at this point in the history
Subscribe to any known topic
  • Loading branch information
Aaron Blasdel committed May 29, 2014
2 parents 89900e7 + 9ffbf81 commit 1a20e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rqt_plot/src/rqt_plot/rosplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _get_topic_type(topic):
"""
try:
master = rosgraph.Master('/rosplot')
val = master.getPublishedTopics('/')
val = master.getTopicTypes()
except:
raise RosPlotException("unable to get list of topics from master")
matches = [(t, t_type) for t, t_type in val if t == topic or topic.startswith(t + '/')]
Expand Down

0 comments on commit 1a20e61

Please sign in to comment.