Skip to content

Commit a693bd2

Browse files
committed
USD Converter: Renamed body.py to link.py
1 parent ba86ea9 commit a693bd2

File tree

3 files changed

+13
-20
lines changed

3 files changed

+13
-20
lines changed

urdf_usd_converter/_impl/body.py

Lines changed: 0 additions & 17 deletions
This file was deleted.

urdf_usd_converter/_impl/convert.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from pxr import Sdf, Tf, Usd, UsdGeom, UsdPhysics
99

1010
from ._flatten import export_flattened
11-
from .body import convert_bodies
1211
from .data import ConversionData, Tokens
12+
from .link import convert_links
1313
from .material import convert_materials
1414
from .mesh import convert_meshes
1515
from .scene import convert_scene
@@ -116,8 +116,8 @@ def convert(self, input_file: str, output_dir: str) -> Sdf.AssetPath:
116116
if self.params.scene:
117117
convert_scene(data)
118118

119-
# author the kinematic tree
120-
convert_bodies(data)
119+
# Joints and links are converted into a hierarchical structure
120+
convert_links(data)
121121

122122
# create the asset interface
123123
usdex.core.addAssetInterface(asset_stage, source=data.content[Tokens.Contents])

urdf_usd_converter/_impl/link.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
from .data import ConversionData
4+
5+
__all__ = ["convert_links"]
6+
7+
8+
def convert_links(data: ConversionData):
9+
# TODO: Implement
10+
pass

0 commit comments

Comments
 (0)