parameters: (msgtype, package_context='')
return_statement: return load_from_file(m_f, pkg)
docstring: Load message specification for specified type
      
      @param package_context: package name to use for the type name or
          '' to use the local (relative) naming convention.
      @type  package_context: str
      @return: Message type name and message specification
      @rtype: (str, L{MsgSpec})
docstring_summary: Load message specification for specified type
docstring_tokens: Load message specification for specified type
function: def load_by_type(msgtype, package_context=''):
      """
      Load message specification for specified type
      
      @param package_context: package name to use for the type name or
          '' to use the local (relative) naming convention.
      @type  package_context: str
      @return: Message type name and message specification
      @rtype: (str, L{MsgSpec})
      """
      pkg, basetype = roslib.names.package_resource_name(msgtype)
      pkg = pkg or package_context # convert '' -> local package
      try:
          m_f = msg_file(pkg, basetype)
      except roslib.packages.InvalidROSPkgException:
          raise MsgSpecException("Cannot locate message type [%s], package [%s] does not exist"%(msgtype, pkg)) 
      return load_from_file(m_f, pkg)
function_tokens: def load_by_type ( msgtype , package_context = '' ) : pkg , basetype = roslib . names . package_resource_name ( msgtype ) pkg = pkg or package_context # convert '' -> local package try : m_f = msg_file ( pkg , basetype ) except roslib . packages . InvalidROSPkgException : raise MsgSpecException ( "Cannot locate message type [%s], package [%s] does not exist" % ( msgtype , pkg ) ) return load_from_file ( m_f , pkg )