Skip to content

Commit

Permalink
Add Model.resolve_uris method
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoferigo committed Feb 8, 2023
1 parent 2c34964 commit 2b623ab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/rod/sdf/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,16 @@ def joints(self) -> List[Joint]:
assert isinstance(self.joint, list), type(self.joint)
return self.joint

def resolve_uris(self) -> None:
from rod.utils import resolve_uris

for link in self.links():
for visual in link.visuals():
resolve_uris.resolve_geometry_uris(geometry=visual.geometry)

for collision in link.collisions():
resolve_uris.resolve_geometry_uris(geometry=collision.geometry)

def resolve_frames(
self, is_top_level: bool = True, explicit_frames: bool = True
) -> None:
Expand Down

0 comments on commit 2b623ab

Please sign in to comment.