Skip to content

Commit

Permalink
Fix SDFormat xml output of sdf_exporter (#2156)
Browse files Browse the repository at this point in the history
Fixes the warnings reported in gazebosim/gazebo_test_cases#207

Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey authored Sep 20, 2023
1 parent 9d79b62 commit 3eb2c7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/scripts/blender/sdf_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def export_sdf(prefix_path):

# 1 model and 1 link
model = ET.SubElement(sdf, "model", attrib={"name": "test"})
static = ET.SubElement(sdf, "static")
static = ET.SubElement(model, "static")
static.text = "true"
link = ET.SubElement(model, "link", attrib={"name": "testlink"})
# for each geometry in geometry library add a <visual> tag
Expand Down Expand Up @@ -165,8 +165,8 @@ def add_attenuation_tags(light_tag, blender_light):
uri.text = path.join(meshes_folder_prefix, dae_filename)

surface = ET.SubElement(collision, "surface")
contact = ET.SubElement(collision, "contact")
collide_bitmask = ET.SubElement(collision, "collide_bitmask")
contact = ET.SubElement(surface, "contact")
collide_bitmask = ET.SubElement(contact, "collide_bitmask")
collide_bitmask.text = "0x01"

## sdf write to file
Expand Down

0 comments on commit 3eb2c7c

Please sign in to comment.