Remove deprecated mjx.device_* functions. They are not suited to upcoming condim support.
PiperOrigin-RevId: 626486447 Change-Id: Ibd41874bb3903123567168ebbac563399788d2f2
This commit is contained in:
committed by
Copybara-Service
parent
e98a95821d
commit
3b64217b96
@@ -55,7 +55,7 @@ class ScanTest(absltest.TestCase):
|
||||
<worldbody/>
|
||||
</mujoco>
|
||||
""")
|
||||
m = mjx.device_put(m)
|
||||
m = mjx.put_model(m)
|
||||
|
||||
def fn(body_id):
|
||||
return body_id + 1
|
||||
@@ -69,7 +69,7 @@ class ScanTest(absltest.TestCase):
|
||||
def test_flat_joints(self):
|
||||
"""Tests scanning over bodies with joints of different types."""
|
||||
m = mujoco.MjModel.from_xml_string(self._MULTI_DOF_XML)
|
||||
m = mjx.device_put(m)
|
||||
m = mjx.put_model(m)
|
||||
|
||||
# we will test two functions:
|
||||
# 1) j_fn receives jnt_types as a jp array
|
||||
@@ -105,7 +105,7 @@ class ScanTest(absltest.TestCase):
|
||||
def test_body_tree(self):
|
||||
"""Tests tree scanning over bodies with different joint counts."""
|
||||
m = mujoco.MjModel.from_xml_string(self._MULTI_DOF_XML)
|
||||
m = mjx.device_put(m)
|
||||
m = mjx.put_model(m)
|
||||
|
||||
# we will test two functions:
|
||||
# 1) j_fn receives jnt_pos which is a jp array
|
||||
@@ -196,7 +196,7 @@ class ScanTest(absltest.TestCase):
|
||||
def test_scan_actuators(self):
|
||||
"""Tests scanning over actuators."""
|
||||
m = mujoco.MjModel.from_xml_string(self._MULTI_ACT_XML)
|
||||
m = mjx.device_put(m)
|
||||
m = mjx.put_model(m)
|
||||
|
||||
fn = lambda *args: args
|
||||
args = (
|
||||
|
||||
Reference in New Issue
Block a user