2 from package_structure
import get_package_structure
3 from package_xml
import PackageXML
4 from cmake_parser
import parse_file
5 from source_code
import SourceCode
6 from ros_generator
import ROSGenerator
7 from setup_py
import SetupPy
8 from launch
import Launch
9 from plugin_xml
import PluginXML
16 self.
name = self.manifest.name
21 self.source_code.setup_tags(self.
cmake)
25 for rel_fn, file_path
in package_structure[
'launch'].iteritems():
26 self.launches.append(Launch(rel_fn, file_path))
27 for rel_fn, file_path
in package_structure[
'plugin_config'].iteritems():
28 self.plugin_configs.append(PluginXML(rel_fn, file_path))
31 if 'setup.py' in package_structure[
'key']:
32 self.
setup_py = SetupPy(self.
name, package_structure[
'key'][
'setup.py'])
34 for rel_fn, path
in package_structure[
'generators'].iteritems():
35 gen = ROSGenerator(rel_fn, path)
41 return self.source_code.get_build_dependencies()
48 packages.update(launch.get_dependencies())
50 if self.
name in packages:
51 packages.remove(self.
name)
56 packages.update(self.source_code.get_test_dependencies())
60 packages.add(
'rostest')
61 packages.update(launch.get_dependencies())
62 if self.
name in packages:
63 packages.remove(self.
name)
67 for gens
in self.generators.values():
74 packages.update(gen.dependencies)
86 for src
in self.source_code.sources.values():
90 s =
'== {} ========\n'.format(self.
name)
92 s +=
' CMakeLists.txt\n' 96 'launch':
'\n'.join(map(str, self.
launches)),
98 'plugin configs':
'\n'.join([cfg.rel_fn
for cfg
in self.
plugin_configs]),
102 components[ext] =
'\n'.join(map(str, self.
generators[ext]))
103 for name, c_str
in sorted(components.iteritems()):
106 s +=
' {}\n'.format(name)
107 for line
in c_str.split(
'\n'):
108 s +=
' ' + line +
'\n'
def get_dependencies_from_msgs(self)
def get_run_dependencies(self)
def get_test_dependencies(self)
def get_package_structure(pkg_root)
def get_all_generators(self)
def get_build_dependencies(self)