You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for separate collision mesh format in convert-urdf-mesh (#593)
This change allows different mesh formats for visual and collision
geometries in URDF files. Collision meshes now default to STL format
for better compatibility with physics engines, while visual meshes
remain as DAE to preserve colors and textures.
Key changes:
- Add --collision-mesh-format option (default: stl)
- Implement context tracking to distinguish visual/collision meshes
- Update mesh conversion logic to handle formats independently
Copy file name to clipboardExpand all lines: skrobot/apps/convert_urdf_mesh.py
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,11 @@ def main():
28
28
parser.add_argument('--format', '-f',
29
29
default='dae',
30
30
choices=['dae', 'stl'],
31
-
help='Mesh format for export. Default is dae.')
31
+
help='Mesh format for visual mesh export. Default is dae.')
32
+
parser.add_argument('--collision-mesh-format',
33
+
default='stl',
34
+
choices=['dae', 'stl'],
35
+
help='Mesh format for collision mesh export. Default is stl.')
32
36
parser.add_argument('--output', '-o', help='Path for the output URDF file. If not specified, a filename is automatically generated based on the input URDF file.') # NOQA
0 commit comments