parameters: (get_deps_dict, hash, rospack=None)
return_statement: return hash.hexdigest()
docstring: subroutine of compute_md5()
      @param get_deps_dict: dictionary returned by get_dependencies call
      @type  get_deps_dict: dict
      @param hash: hash instance
      @type  hash: hash instance
docstring_summary: subroutine of compute_md5()
docstring_tokens: subroutine of compute_md5 ()
function: def _compute_hash(get_deps_dict, hash, rospack=None):
      """
      subroutine of compute_md5()
      @param get_deps_dict: dictionary returned by get_dependencies call
      @type  get_deps_dict: dict
      @param hash: hash instance
      @type  hash: hash instance
      """
      # accumulate the hash
      # - root file
      from roslib.msgs import MsgSpec
      from roslib.srvs import SrvSpec
      spec = get_deps_dict['spec']
      if isinstance(spec, MsgSpec):
          hash.update(compute_md5_text(get_deps_dict, spec, rospack=rospack).encode())
      elif isinstance(spec, SrvSpec):
          hash.update(compute_md5_text(get_deps_dict, spec.request, rospack=rospack).encode())
          hash.update(compute_md5_text(get_deps_dict, spec.response, rospack=rospack).encode())
      else:
          raise Exception("[%s] is not a message or service"%spec)
      return hash.hexdigest()
function_tokens: def _compute_hash ( get_deps_dict , hash , rospack = None ) : # accumulate the hash # - root file from roslib . msgs import MsgSpec from roslib . srvs import SrvSpec spec = get_deps_dict [ 'spec' ] if isinstance ( spec , MsgSpec ) : hash . update ( compute_md5_text ( get_deps_dict , spec , rospack = rospack ) . encode ( ) ) elif isinstance ( spec , SrvSpec ) : hash . update ( compute_md5_text ( get_deps_dict , spec . request , rospack = rospack ) . encode ( ) ) hash . update ( compute_md5_text ( get_deps_dict , spec . response , rospack = rospack ) . encode ( ) ) else : raise Exception ( "[%s] is not a message or service" % spec ) return hash . hexdigest ( )