Skip to content

Commit

Permalink
remove doors from world generated by dae export
Browse files Browse the repository at this point in the history
Signed-off-by: ddengster <ed.fan@osrfoundation.org>
  • Loading branch information
ddengster committed Jun 8, 2021
1 parent f14014f commit ac3081a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions rmf_building_map_tools/building_map/building.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ def generate_sdf_world(self, options):
for level_name, level in self.levels.items():
# todo: a better name
level.generate_sdf_models(world, dae_export_plugin)
level.generate_doors(world, options)
if dae_export_plugin is False:
level.generate_doors(world, options)

level_include_ele = SubElement(world, 'include')
level_model_name = f'{self.name}_{level_name}'
Expand All @@ -158,12 +159,13 @@ def generate_sdf_world(self, options):
pose_ele = SubElement(level_include_ele, 'pose')
pose_ele.text = f'0 0 {level.elevation} 0 0 0'

for lift_name, lift in self.lifts.items():
if not lift.level_doors:
print(f'[{lift_name}] is not serving any floor, ignoring.')
continue
lift.generate_shaft_doors(world)
lift.generate_cabin(world, options)
if dae_export_plugin is False:
for lift_name, lift in self.lifts.items():
if not lift.level_doors:
print(f'[{lift_name}] is not serving any floor, ignoring.')
continue
lift.generate_shaft_doors(world)
lift.generate_cabin(world, options)

charger_waypoints_ele = SubElement(
world,
Expand Down

0 comments on commit ac3081a

Please sign in to comment.