File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -302,6 +302,20 @@ def __init__(
302302class HumanoidWalkingTaskConfig (ksim .PPOConfig ):
303303 """Config for the humanoid walking task."""
304304
305+ # Task parameters.
306+ num_envs : int = xax .field (
307+ value = 1 ,
308+ help = "The number of environments to run in parallel." ,
309+ )
310+ batch_size : int = xax .field (
311+ value = 1 ,
312+ help = "The batch size for the PPO training." ,
313+ )
314+
315+ rollout_length_seconds : float = xax .field (
316+ value = 1.0 ,
317+ help = "The length of the rollout in seconds." ,
318+ )
305319 # Model parameters.
306320 hidden_size : int = xax .field (
307321 value = 128 ,
@@ -621,7 +635,6 @@ def sample_action(
621635 commands = commands ,
622636 carry = actor_carry_in ,
623637 )
624-
625638 action_j = action_dist_j .mode () if argmax else action_dist_j .sample (seed = rng )
626639
627640 return ksim .Action (
You can’t perform that action at this time.
0 commit comments