Skip to content

Commit

Permalink
Support pyrender
Browse files Browse the repository at this point in the history
  • Loading branch information
iory committed Nov 5, 2024
1 parent 4beb54f commit 4c98950
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ros/kxr_controller/scripts/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ def main():
viewer = TrimeshSceneViewer(resolution=(640, 480))
viewer.add(robot_model)
viewer.show()
elif args.viewer == "pyrender":
from skrobot.viewers import PyrenderViewer

viewer = PyrenderViewer(resolution=(640, 480))
viewer.add(robot_model)
viewer.show()
else:
raise NotImplementedError(f"Not supported viewer {args.viewer}")

Expand Down

0 comments on commit 4c98950

Please sign in to comment.