File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ dependencies = [# Optional
57
57
' transformations' ,
58
58
' absl-py' ,
59
59
' lxml' ,
60
- ' dm_control' ,
61
60
' pyyaml'
62
61
]
63
62
@@ -71,6 +70,7 @@ dependencies = [# Optional
71
70
# projects.
72
71
[project .optional-dependencies ] # Optional
73
72
test = [" pytest" ]
73
+ mujoco = [" dm_control" ]
74
74
75
75
# List URLs that are relevant to your project
76
76
#
@@ -102,4 +102,4 @@ test = ["pytest"]
102
102
# These are the assumed default build requirements from pip:
103
103
# https://pip.pypa.io/en/stable/reference/pip/#pep-517-and-518-support
104
104
requires = [" setuptools>=43.0.0" , " wheel" ]
105
- build-backend = " setuptools.build_meta"
105
+ build-backend = " setuptools.build_meta"
Original file line number Diff line number Diff line change 1
- from dm_control import mjcf
2
-
3
1
import pytorch_kinematics .transforms as tf
4
2
from . import chain
5
3
from . import frame
@@ -59,6 +57,8 @@ def build_chain_from_mjcf(data):
59
57
chain.Chain
60
58
Chain object created from MJCF.
61
59
"""
60
+ from dm_control import mjcf
61
+
62
62
model = mjcf .from_xml_string (data )
63
63
root_body = model .worldbody .body [0 ]
64
64
root_frame = frame .Frame (root_body .name + "_frame" ,
You can’t perform that action at this time.
0 commit comments