parameters: (self, param_server, run_id)
docstring: Initialize self.run_id to existing value or setup parameter
          server with /run_id set to default_run_id
          @param default_run_id: run_id to use if value is not set
          @type  default_run_id: str
          @param param_server: parameter server proxy
          @type  param_server: xmlrpclib.ServerProxy
docstring_summary: Initialize self.run_id to existing value or setup parameter
          server with /run_id set to default_run_id
docstring_tokens: Initialize self . run_id to existing value or setup parameter server with / run_id set to default_run_id
function: def _check_and_set_run_id(self, param_server, run_id):
          """
          Initialize self.run_id to existing value or setup parameter
          server with /run_id set to default_run_id
          @param default_run_id: run_id to use if value is not set
          @type  default_run_id: str
          @param param_server: parameter server proxy
          @type  param_server: xmlrpclib.ServerProxy
          """
          code, _, val = param_server.hasParam(_ID, '/run_id')
          if code == 1 and not val:
              printlog_bold("setting /run_id to %s"%run_id)
              param_server.setParam('/roslaunch', '/run_id', run_id)
          else:
              # verify that the run_id we have been set to matches what's on the parameter server
              code, _, val = param_server.getParam('/roslaunch', '/run_id')
              if code != 1:
                  #could only happen in a bad race condition with
                  #someone else restarting core
                  raise RLException("ERROR: unable to retrieve /run_id from parameter server")
              if run_id != val:
                  raise RLException("run_id on parameter server does not match declared run_id: %s vs %s"%(val, run_id))
function_tokens: def _check_and_set_run_id ( self , param_server , run_id ) : code , _ , val = param_server . hasParam ( _ID , '/run_id' ) if code == 1 and not val : printlog_bold ( "setting /run_id to %s" % run_id ) param_server . setParam ( '/roslaunch' , '/run_id' , run_id ) else : # verify that the run_id we have been set to matches what's on the parameter server code , _ , val = param_server . getParam ( '/roslaunch' , '/run_id' ) if code != 1 : #could only happen in a bad race condition with #someone else restarting core raise RLException ( "ERROR: unable to retrieve /run_id from parameter server" ) if run_id != val : raise RLException ( "run_id on parameter server does not match declared run_id: %s vs %s" % ( val , run_id ) )