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)

Row boundary for stateless sensor terms.

Attributes

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

  • env (ManagerBasedRlEnv)

reset(env_ids)[source]

Row boundary for stateless sensor terms.

Parameters:

env_ids (Tensor)

Return type:

None

__call__(env, **params)[source]

Returns the value of the term required by the manager.

Parameters:
  • env (ManagerBasedRlEnv)

  • params (Any)

Return type:

Tensor

property entity_name: str
property name: str
property num_envs: int
property num_feet: int
property tensor_body_names: tuple[str, ...]
property tensor_sensor_names: tuple[str, ...]