3 from .util
import TRAILING_PATTERN, roscompile
13 gens = list(package.get_all_generators())
15 all_names.add(gen.base_name)
17 for section
in gen.sections:
18 for field
in section.fields:
19 if '/' in field.type
or field.type
in PRIMITIVES:
22 if field.type
in STANDARD:
23 field.type = STANDARD[field.type] +
'/' + field.type
25 elif field.type
in all_names:
26 field.type = package.name +
'/' + field.type
32 for gen
in package.get_all_generators():
33 for i, content
in enumerate(gen.contents):
34 if not isinstance(content, str):
36 m = TRAILING_PATTERN.match(content)
38 gen.contents[i] = m.group(1) +
'\n'