ros_parameters.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 #
3 # License: BSD
4 # https://raw.github.com/robotics-in-concert/rocon_multimaster/license/LICENSE
5 #
6 
7 import rospy
8 
9 ###############################################################################
10 # Functions
11 ###############################################################################
12 
13 
14 def load():
15  '''
16  Returns the gateway parameters from the ros param server.
17 
18  - hub_name : string identifer for the hub, gateways use this
19  - port : port number to run the server (default: 6380)
20  - zeroconf : whether or not to zeroconf publish this hub
21  - max_memory : max amount of ram allocated for this redis server
22  '''
23  param = {}
24 
25  param['name'] = rospy.get_param('~name', 'Gateway Hub')
26  param['port'] = rospy.get_param('~port', '6380')
27  param['zeroconf'] = rospy.get_param("~zeroconf", True)
28  param['max_memory'] = rospy.get_param('~max_memory', '10mb')
29 
30  return param
def load()
Functions.


rocon_hub
Author(s): Daniel Stonier , Jihoon Lee , Piyush Khandelwal
autogenerated on Mon Jun 10 2019 14:40:13