Skip to content

Commit

Permalink
Switched to pyribbit instead of pyrender
Browse files Browse the repository at this point in the history
  • Loading branch information
fishbotics committed Mar 2, 2024
1 parent cbdbda7 commit 063edac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions urchin/urdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3695,19 +3695,19 @@ def show(self, cfg=None, use_collision=False):
If True, the collision geometry is visualized instead of
the visual geometry.
"""
import pyrender # Save pyrender import for here for CI
import pyribbit # Save pyribbit import for here for CI

if use_collision:
fk = self.collision_trimesh_fk(cfg=cfg)
else:
fk = self.visual_trimesh_fk(cfg=cfg)

scene = pyrender.Scene()
scene = pyribbit.Scene()
for tm in fk:
pose = fk[tm]
mesh = pyrender.Mesh.from_trimesh(tm, smooth=False)
mesh = pyribbit.Mesh.from_trimesh(tm, smooth=False)
scene.add(mesh, pose=pose)
pyrender.Viewer(scene, use_raymond_lighting=True)
pyribbit.Viewer(scene, use_raymond_lighting=True)

def copy(self, name=None, prefix="", scale=None, collision_only=False):
"""Make a deep copy of the URDF.
Expand Down

0 comments on commit 063edac

Please sign in to comment.