system_table.py
Go to the documentation of this file.
00001 #! /usr/bin/env python
00002 import os
00003 import xmlrpclib
00004 import time
00005 
00006 caller_id = '/script'
00007 m = xmlrpclib.ServerProxy(os.environ['ROS_MASTER_URI'])
00008 pubcode, statusMessage, topicList = m.getPublishedTopics(caller_id, "")
00009 print"\nOrigin_NODE--------TOPIC--------->Destination_NODE\n"
00010 code, msg, val = m.getSystemState(caller_id)
00011 pubs, subs, srvs = val
00012 for pb in pubs:
00013   for sb in subs:
00014     if pb[0] == sb[0]:
00015       for pbb in pb[1]:
00016         for sbb in sb[1]:
00017           for t in topicList:
00018             if t[0] == pb[0]:
00019               print pbb,"----------", pb[0],"[",t[1],"]" ,"-------->", sbb


tug_ist_diagnosis_generator
Author(s): Safdar Zaman, Gerald Steinbauer
autogenerated on Mon Jan 6 2014 11:51:14