Skip to content

Commit ab4286f

Browse files
committed
Widen base angular velocity range and update G1 run curriculum
Increase base ang_vel_z from (-0.5, 0.5) to (-1.0, 1.0). Ramp the G1 run curriculum stages to (-1.5, 1.5) and (-2.0, 2.0).
1 parent 7f1315f commit ab4286f

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

src/mjlab/tasks/velocity/config/g1/env_cfgs.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,9 @@ def unitree_g1_flat_run_env_cfg(play: bool = False) -> ManagerBasedRlEnvCfg:
220220
params={
221221
"command_name": "twist",
222222
"velocity_stages": [
223-
{"step": 0, "lin_vel_x": (-1.0, 1.0), "ang_vel_z": (-0.5, 0.5)},
224-
{"step": 5000 * 24, "lin_vel_x": (-1.5, 2.0), "ang_vel_z": (-0.7, 0.7)},
225-
{"step": 10000 * 24, "lin_vel_x": (-2.0, 3.0)},
223+
{"step": 0, "lin_vel_x": (-1.0, 1.0)},
224+
{"step": 5000 * 24, "lin_vel_x": (-1.5, 2.0), "ang_vel_z": (-1.5, 1.5)},
225+
{"step": 10000 * 24, "lin_vel_x": (-2.0, 3.0), "ang_vel_z": (-2.0, 2.0)},
226226
],
227227
},
228228
)
@@ -231,6 +231,6 @@ def unitree_g1_flat_run_env_cfg(play: bool = False) -> ManagerBasedRlEnvCfg:
231231
twist_cmd = cfg.commands["twist"]
232232
assert isinstance(twist_cmd, UniformVelocityCommandCfg)
233233
twist_cmd.ranges.lin_vel_x = (-2.0, 3.0)
234-
twist_cmd.ranges.ang_vel_z = (-0.7, 0.7)
234+
twist_cmd.ranges.ang_vel_z = (-2.0, 2.0)
235235

236236
return cfg

src/mjlab/tasks/velocity/config/go1/env_cfgs.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
TerrainHeightSensorCfg,
2424
)
2525
from mjlab.tasks.velocity import mdp
26-
from mjlab.tasks.velocity.mdp import UniformVelocityCommandCfg
2726
from mjlab.tasks.velocity.velocity_env_cfg import make_velocity_env_cfg
2827

2928
TerrainType = Literal["rough", "obstacles"]
@@ -312,10 +311,4 @@ def unitree_go1_flat_env_cfg(play: bool = False) -> ManagerBasedRlEnvCfg:
312311
# Disable terrain curriculum (not present in play mode since rough clears all).
313312
cfg.curriculum.pop("terrain_levels", None)
314313

315-
if play:
316-
twist_cmd = cfg.commands["twist"]
317-
assert isinstance(twist_cmd, UniformVelocityCommandCfg)
318-
twist_cmd.ranges.lin_vel_x = (-1.5, 2.0)
319-
twist_cmd.ranges.ang_vel_z = (-0.7, 0.7)
320-
321314
return cfg

src/mjlab/tasks/velocity/velocity_env_cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def make_velocity_env_cfg() -> ManagerBasedRlEnvCfg:
189189
ranges=UniformVelocityCommandCfg.Ranges(
190190
lin_vel_x=(-1.0, 1.0),
191191
lin_vel_y=(-1.0, 1.0),
192-
ang_vel_z=(-0.5, 0.5),
192+
ang_vel_z=(-1.0, 1.0),
193193
heading=(-math.pi, math.pi),
194194
),
195195
)

0 commit comments

Comments
 (0)