Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 import roslib
00008 roslib.load_manifest('rocon_hub')
00009 import rospy
00010 
00011 
00012 
00013 
00014 
00015 
00016 def load():
00017     '''
00018     Returns the gateway parameters from the ros param server.
00019 
00020      - hub_name   : string identifer for the hub, gateways use this
00021      - port       : port number to run the server (default: 6380)
00022      - zeroconf   : whether or not to zeroconf publish this hub
00023      - max_memory : max amount of ram allocated for this redis server
00024     '''
00025     param = {}
00026 
00027     param['name'] = rospy.get_param('~name', 'Gateway Hub')
00028     param['port'] = rospy.get_param('~port', '6380')
00029     param['zeroconf'] = rospy.get_param("~zeroconf", True)
00030     param['max_memory'] = rospy.get_param('~max_memory', '10mb')
00031 
00032     return param