unilab.tasks.locomotion.common.gait_terms.feet_swing_height

class unilab.tasks.locomotion.common.gait_terms.feet_swing_height[source]

Bases: _FootContactTerm

Penalize peak-swing-height deviation from the target, evaluated at landing.

Mirrors mjlab feet_swing_height: the peak foot height accumulates while the foot is in the air; on first contact the squared relative error (peak / target_height - 1)^2 is charged and the peak resets.

Parameters:
  • cfg (ManagerTermBaseCfg)

  • env (ManagerBasedRlEnv)

Methods

__init__(cfg, env)

reset([env_ids])

Resets the manager term.

Attributes

__init__(cfg, env)[source]
Parameters:
  • cfg (ManagerTermBaseCfg)

  • env (ManagerBasedRlEnv)

reset(env_ids=None)[source]

Resets the manager term.

Parameters:

env_ids (ndarray | slice | None)

Return type:

None

__call__(env, **params)[source]

Returns the value of the term required by the manager.

Parameters:
  • env (ManagerBasedRlEnv)

  • params (Any)

Return type:

ndarray

property name: str
property num_envs: int
property num_feet: int