gazebosim / gazebosim/sdformat
Incorrect URDF to SDF parsing materials
- Dominant language
- C++
- Stars
- 216
- Forks
- 125
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 14
Description
**Original report ([archived issue](https://osrf-migration.github.io/sdformat-gh-pages/#!/osrf/sdformat/issues/86)) by Allison Thackston (Bitbucket: [athackst](https://bitbucket.org/%7B28ae182d-47f4-4357-8024-ea9ef84e3559%7D/)).**
The original report had attachments: [test_urdf.sdf](https://osrf-migration.github.io/sdformat-gh-pages/data/repositories/osrf/sdformat/issues/86/attachments/test_urdf.sdf), [test_urdf.urdf](https://osrf-migration.github.io/sdformat-gh-pages/data/repositories/osrf/sdformat/issues/86/attachments/test_urdf.urdf), [test_urdf.xacro](https://osrf-migration.github.io/sdformat-gh-pages/data/repositories/osrf/sdformat/issues/86/attachments/test_urdf.xacro)
----------------------------------------
Materials in URDF are added multiple times if the reference name is a subset of another name.
Example: link_slot1 assigned to color grey
link_slot1_switch assigned to color black has colors grey and black in sdf
link_slot1_switch_cover assigned to color red has colors grey, black and red in sdf
Contributor guide
Research direction
Start by comparing the attached test_urdf.urdf and test_urdf.xacro with the resulting test_urdf.sdf, focusing on material references whose names contain one another. Trace the URDF-to-SDF material conversion entry point and verify that each link receives only its intended material color; add a regression test if the existing test layout is identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- robotics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100