Public Member Functions | |
def | __init__ |
def | get_params |
Static Public Attributes | |
dictionary | param_defaults = {} |
Helper class to be used for grabbing parameters off the parameter server at startup. Example usage: from starmac_roslib.ros_params import ROSParams class MyNodeParams(ROSParams): param_defaults = {'param_one': 2.3, 'param_two': 0.0} class MyNode: ... def init_params(self): self.params = MyNodeParams() def some_method(self): foo = self.params.param_one * 42
Definition at line 37 of file ros_params.py.
def starmac_roslib.ros_params.ROSParams.__init__ | ( | self, | |
get_params = True , |
|||
quiet = False |
|||
) |
Definition at line 58 of file ros_params.py.
def starmac_roslib.ros_params.ROSParams.get_params | ( | self, | |
quiet = False |
|||
) |
Loads parameter values from the parameter server, using defaults from self.param_defaults Unless the quiet parameter is set, an info message is printed giving the parameter name, the set value of the parameter, its type and default value.
Definition at line 62 of file ros_params.py.
dictionary starmac_roslib::ros_params.ROSParams::param_defaults = {} [static] |
Definition at line 56 of file ros_params.py.