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