parameters: (argv)
return_statement: return mappings
docstring: Load name mappings encoded in command-line arguments. This will filter
      out any parameter assignment mappings (see roslib.param.load_param_mappings()).
  
      @param argv: command-line arguments
      @type  argv: [str]
      @return: name->name remappings. 
      @rtype: dict {str: str}
docstring_summary: Load name mappings encoded in command-line arguments. This will filter
      out any parameter assignment mappings (see roslib.param.load_param_mappings()).
docstring_tokens: Load name mappings encoded in command - line arguments . This will filter out any parameter assignment mappings ( see roslib . param . load_param_mappings () ) .
function: def load_mappings(argv):
      """
      Load name mappings encoded in command-line arguments. This will filter
      out any parameter assignment mappings (see roslib.param.load_param_mappings()).
  
      @param argv: command-line arguments
      @type  argv: [str]
      @return: name->name remappings. 
      @rtype: dict {str: str}
      """    
      mappings = {}
      for arg in argv:
          if REMAP in arg:
              try:
                  src, dst = [x.strip() for x in arg.split(REMAP)]
                  if src and dst:
                      if len(src) > 1 and src[0] == '_' and src[1] != '_':
                          #ignore parameter assignment mappings
                          pass
                      else:
                          mappings[src] = dst
              except:
                  sys.stderr.write("ERROR: Invalid remapping argument '%s'\n"%arg)
      return mappings
function_tokens: def load_mappings ( argv ) : mappings = { } for arg in argv : if REMAP in arg : try : src , dst = [ x . strip ( ) for x in arg . split ( REMAP ) ] if src and dst : if len ( src ) > 1 and src [ 0 ] == '_' and src [ 1 ] != '_' : #ignore parameter assignment mappings pass else : mappings [ src ] = dst except : sys . stderr . write ( "ERROR: Invalid remapping argument '%s'\n" % arg ) return mappings