Skip to content

Commit 8a0f509

Browse files
thowellcopybara-github
authored andcommitted
Update locomotion environments for Warp backend.
PiperOrigin-RevId: 836124238 Change-Id: I8e284b755dc67aaae9332051328105cde816c7b1
1 parent bfac262 commit 8a0f509

File tree

5 files changed

+3
-11
lines changed

5 files changed

+3
-11
lines changed

mujoco_playground/_src/locomotion/berkeley_humanoid/joystick.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@ def __init__(
108108
config: config_dict.ConfigDict = default_config(),
109109
config_overrides: Optional[Dict[str, Union[str, int, list[Any]]]] = None,
110110
):
111-
if task.startswith("rough"):
112-
config.nconmax = 100 * 8192
113-
config.njmax = 12 + 100 * 4
114111
super().__init__(
115112
xml_path=consts.task_to_xml(task).as_posix(),
116113
config=config,

mujoco_playground/_src/locomotion/g1/joystick.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,6 @@ def __init__(
116116
config: config_dict.ConfigDict = default_config(),
117117
config_overrides: Optional[Dict[str, Union[str, int, list[Any]]]] = None,
118118
):
119-
if task.startswith("rough"):
120-
config.nconmax = 100 * 8192
121-
config.njmax = 29 * 2 + 100 * 4
122119
super().__init__(
123120
xml_path=consts.task_to_xml(task).as_posix(),
124121
config=config,

mujoco_playground/_src/locomotion/go1/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def __init__(
5353
epath.Path(xml_path).read_text(), assets=self._model_assets
5454
)
5555
self._mj_model.opt.timestep = self._config.sim_dt
56+
self._mj_model.opt.ccd_iterations = 10
5657

5758
# Modify PD gains.
5859
self._mj_model.dof_damping[6:] = config.Kd

mujoco_playground/_src/locomotion/go1/joystick.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ def __init__(
105105
config_overrides: Optional[Dict[str, Union[str, int, list[Any]]]] = None,
106106
):
107107
if task.startswith("rough"):
108-
config.nconmax = 100 * 8192
109-
config.njmax = 12 + 100 * 4
108+
config.nconmax = 8 * 8192
109+
config.njmax = 12 + 8 * 4
110110
super().__init__(
111111
xml_path=consts.task_to_xml(task).as_posix(),
112112
config=config,

mujoco_playground/_src/locomotion/t1/joystick.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ def __init__(
109109
config: config_dict.ConfigDict = default_config(),
110110
config_overrides: Optional[Dict[str, Union[str, int, list[Any]]]] = None,
111111
):
112-
if task.startswith("rough"):
113-
config.nconmax = 100 * 8192
114-
config.njmax = 500
115112
super().__init__(
116113
xml_path=consts.task_to_xml(task).as_posix(),
117114
config=config,

0 commit comments

Comments
 (0)