Skip to content

Commit

Permalink
Merge pull request #17 from fishbotics/pyribbit
Browse files Browse the repository at this point in the history
Switched to pyribbit instead of pyrender
  • Loading branch information
fishbotics authored Mar 2, 2024
2 parents cbdbda7 + 063edac commit b5df28a
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 b5df28a

Please sign in to comment.