Public Member Functions | Static Public Attributes
starmac_roslib.ros_params.ROSParams Class Reference

List of all members.

Public Member Functions

def __init__
def get_params

Static Public Attributes

dictionary param_defaults = {}

Detailed Description

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.


Constructor & Destructor Documentation

def starmac_roslib.ros_params.ROSParams.__init__ (   self,
  get_params = True,
  quiet = False 
)

Definition at line 58 of file ros_params.py.


Member Function Documentation

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.


Member Data Documentation

Definition at line 56 of file ros_params.py.


The documentation for this class was generated from the following file:


starmac_roslib
Author(s): Patrick Bouffard
autogenerated on Sun Jan 5 2014 11:38:14