Skip to content

Commit c85e294

Browse files
committed
Enforce optionality of mujoco
1 parent 3ec3f16 commit c85e294

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/pytorch_kinematics/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
from pytorch_kinematics.sdf import *
22
from pytorch_kinematics.urdf import *
3-
from pytorch_kinematics.mjcf import *
3+
4+
try:
5+
from pytorch_kinematics.mjcf import *
6+
except ImportError:
7+
pass
48
from pytorch_kinematics.transforms import *
59
from pytorch_kinematics.chain import *
6-
from pytorch_kinematics.ik import *
10+
from pytorch_kinematics.ik import *

0 commit comments

Comments
 (0)