Skip to content

Commit

Permalink
Add type annotations to meshcat_visualizer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-caron committed Dec 12, 2024
1 parent ad46d61 commit dbc34d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/python/pinocchio/visualize/meshcat_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def __init__(self, dae_path: str, cache: Optional[Set[str]] = None) -> None:
self.dae_raw = text_file.read()

# Parse the image resource in Collada file
img_resource_paths = []
img_resource_paths: List[Path] = []
img_lib_element = Et.parse(dae_path).find(
"{http://www.collada.org/2005/11/COLLADASchema}library_images"
)
Expand All @@ -133,7 +133,7 @@ def __init__(self, dae_path: str, cache: Optional[Set[str]] = None) -> None:
]

# Convert textures to data URL for Three.js ColladaLoader to load them
self.img_resources = {}
self.img_resources: Dict[str, str] = {}
for img_path in img_resource_paths:
img_key = str(img_path)
# Return empty string if already in cache
Expand Down

0 comments on commit dbc34d8

Please sign in to comment.