ros_parameters.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 #
00003 # License: BSD
00004 #   https://raw.github.com/robotics-in-concert/rocon_multimaster/license/LICENSE
00005 #
00006 
00007 import rospy
00008 
00009 ###############################################################################
00010 # Functions
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


rocon_hub
Author(s): Daniel Stonier , Jihoon Lee , Piyush Khandelwal
autogenerated on Sat Jun 8 2019 18:48:46