generators.py
Go to the documentation of this file.
1 from ros_introspection.ros_generator import PRIMITIVES
2 
3 from .util import roscompile
4 
5 STANDARD = {
6  'Header': 'std_msgs'
7 }
8 
9 
10 @roscompile
12  all_names = set()
13  gens = list(package.get_all_generators())
14  for gen in gens:
15  all_names.add(gen.base_name)
16  for gen in gens:
17  for section in gen.sections:
18  for field in section.fields:
19  if '/' in field.type or field.type in PRIMITIVES:
20  continue
21 
22  if field.type in STANDARD:
23  field.type = STANDARD[field.type] + '/' + field.type
24  gen.changed = True
25  elif field.type in all_names:
26  field.type = package.name + '/' + field.type
27  gen.changed = True
def fill_in_msg_package_names(package)
Definition: generators.py:11


roscompile
Author(s):
autogenerated on Wed Mar 3 2021 03:56:01