fix: keep simplified house static
This commit is contained in:
@@ -54,6 +54,11 @@ def create_flat_house_world(gazebo_dir):
|
|||||||
house_model_tree = ET.parse(model_path)
|
house_model_tree = ET.parse(model_path)
|
||||||
house_model = house_model_tree.getroot()
|
house_model = house_model_tree.getroot()
|
||||||
house_model.attrib['name'] = 'turtlebot3_house_flat'
|
house_model.attrib['name'] = 'turtlebot3_house_flat'
|
||||||
|
house_static = house_model.find('static')
|
||||||
|
if house_static is None:
|
||||||
|
house_static = ET.Element('static')
|
||||||
|
house_model.insert(0, house_static)
|
||||||
|
house_static.text = '1'
|
||||||
replace_house_visual_meshes_with_boxes(house_model)
|
replace_house_visual_meshes_with_boxes(house_model)
|
||||||
|
|
||||||
for visual in house_model.findall('.//visual'):
|
for visual in house_model.findall('.//visual'):
|
||||||
|
|||||||
Reference in New Issue
Block a user