def resolve_type(type_, package_context):
 bt = base_msg_type(type_)
 if (bt in BUILTIN_TYPES):
  return type_
 elif (bt == 'Header'):
  return 'std_msgs/Header'
 elif (SEP in type_):
  return type_
 else:
  return ('%s%s%s' % (package_context, SEP, type_))

def resolve_type ( type_ , package_context ) : bt = base_msg_type ( type_ ) if ( bt in BUILTIN_TYPES ) : return type_ elif ( bt == 'Header' ) : return 'std_msgs/Header' elif ( SEP in type_ ) : return type_ else : return ( '%s%s%s' % ( package_context , SEP , type_ ) )
resolve type name based on current package context .