def load_package_dependencies(package, load_recursive=False):
 global _loaded_packages
 _init()
 if VERBOSE:
  print('Load dependencies for package', package)
 if (not load_recursive):
  manifest_file = roslib.manifest.manifest_file(package, True)
  m = roslib.manifest.parse_file(manifest_file)
  depends = [d.package for d in m.depends]
 else:
  depends = rospkg.RosPack().get_depends(package, implicit=True)
 msgs = []
 failures = []
 for d in depends:
  if VERBOSE:
   print('Load dependency', d)
  if ((d in _loaded_packages) or (d == package)):
   continue
  _loaded_packages.append(d)
  (specs, failed) = get_pkg_msg_specs(d)
  msgs.extend(specs)
  failures.extend(failed)
 for (key, spec) in msgs:
  register(key, spec)

def load_package_dependencies ( package , load_recursive = False ) : global _loaded_packages _init ( ) if VERBOSE : print ( 'Load dependencies for package' , package ) if ( not load_recursive ) : manifest_file = roslib . manifest . manifest_file ( package , True ) m = roslib . manifest . parse_file ( manifest_file ) depends = [ d . package for d in m . depends ] else : depends = rospkg . RosPack ( ) . get_depends ( package , implicit = True ) msgs = [ ] failures = [ ] for d in depends : if VERBOSE : print ( 'Load dependency' , d ) if ( ( d in _loaded_packages ) or ( d == package ) ) : continue _loaded_packages . append ( d ) ( specs , failed ) = get_pkg_msg_specs ( d ) msgs . extend ( specs ) failures . extend ( failed ) for ( key , spec ) in msgs : register ( key , spec )
register all messages that the specified package depends on .