Package roslib :: Module params
[frames] | no frames]

Module params

source code

Utilities for accessing the Parameter Server

Functions
{str: val}
load_command_line_node_params(argv)
Load node param mappings (aka private parameters) encoded in command-line arguments, e.g.
source code
 
get_param(key)
Retrieve parameter value from the Parameter Server.
source code
Variables
  __package__ = 'roslib'
Function Details

load_command_line_node_params(argv)

source code 

Load node param mappings (aka private parameters) encoded in command-line arguments, e.g. _foo:=bar. See also roslib.names.load_mappings.

Parameters:
  • argv - command-line arguments
  • argv - [str]
Returns: {str: val}
param->value remappings.

get_param(key)

source code 

Retrieve parameter value from the Parameter Server. Each call to this routine results in an actual network call to the Parameter Server. Client must be an actual ROS node in order to implement a parameter cache.

Parameters:
  • key (str) - name of parameter to fetch
Raises:
  • KeyError - if parameter is not set