unilab.tasks.locomotion.common.gait_terms.foot_contact

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

Bases: _FootContactTerm

Per-foot contact flag as float, shape (num_envs, num_feet).

Mirrors mjlab foot_contact (ContactSensor.data.found > 0).

Parameters:
  • cfg (ManagerTermBaseCfg)

  • env (ManagerBasedRlEnv)

Methods

__init__(cfg, env)

reset(env_ids)

Resets the manager term.

Attributes

__call__(env, **params)[source]

Returns the value of the term required by the manager.

Parameters:
  • env (ManagerBasedRlEnv)

  • params (Any)

Return type:

ndarray

__init__(cfg, env)
Parameters:
  • cfg (ManagerTermBaseCfg)

  • env (ManagerBasedRlEnv)

property name: str
property num_envs: int
property num_feet: int
reset(env_ids)

Resets the manager term.

Parameters:

env_ids (ndarray | slice | None)

Return type:

Any