unilab.envs.locomotion.common.rewards.run_reward_dispatch

unilab.envs.locomotion.common.rewards.run_reward_dispatch(*, scales, fns, ctx, info, enable_log, ctrl_dt, log_every_n_steps=4, only_positive=False)[source]

Standard scales × fns(ctx) reduction shared by all locomotion envs.

  • Writes per-reward means into info["log"] when enable_log and the steps[0] cadence matches log_every_n_steps.

  • Returns reward * ctrl_dt (with optional positive clamp).

Parameters:
Return type:

ndarray