Skip to content

Commit

Permalink
Remove mjOption.collision check in mjcf.py (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
brn-dev authored Oct 19, 2023
1 parent 45729a4 commit fa1a08a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions brax/io/mjcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,6 @@ def load_model(mj: mujoco.MjModel) -> System:
raise NotImplementedError('geom_solmix parameter not supported.')
if (mj.geom_priority[0] != mj.geom_priority).any():
raise NotImplementedError('geom_priority parameter not supported.')
if mj.opt.collision == 1:
raise NotImplementedError('Predefined collisions not supported.')
q_width = {0: 7, 1: 4, 2: 1, 3: 1}
non_free = np.concatenate([[j != 0] * q_width[j] for j in mj.jnt_type])
if mj.qpos0[non_free].any():
Expand Down

0 comments on commit fa1a08a

Please sign in to comment.