Force dtype of mjx.Contact.{geom1,geom2,geom} to int32.
This improves compatibility with MuJoCo. PiperOrigin-RevId: 662655282 Change-Id: I2a336d9453f40cf0bfa85a7203b55709e23a07fe
This commit is contained in:
committed by
Copybara-Service
parent
19aa68c2b2
commit
1141b4abbc
@@ -153,9 +153,9 @@ def make_data(m: Union[types.Model, mujoco.MjModel]) -> types.Data:
|
||||
solreffriction=jp.zeros((ncon, mujoco.mjNREF), dtype=float),
|
||||
solimp=jp.zeros((ncon, mujoco.mjNIMP), dtype=float),
|
||||
dim=dim,
|
||||
geom1=jp.full((ncon,), -1, dtype=int),
|
||||
geom2=jp.full((ncon,), -1, dtype=int),
|
||||
geom=jp.full((ncon, 2), -1, dtype=int),
|
||||
geom1=jp.full((ncon,), -1, dtype=jp.int32),
|
||||
geom2=jp.full((ncon,), -1, dtype=jp.int32),
|
||||
geom=jp.full((ncon, 2), -1, dtype=jp.int32),
|
||||
efc_address=efc_address,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user