unilab.tasks.locomotion.common.manager_terms¶
Shared Manager-Based terms and term bases for the locomotion families.
The equations come from UniLab’s quadruped joystick tasks and are reused
by quadruped and biped owners alike. The adaptation uses community
func + params terms, Torch state carriers, and packed named-sensor reads.
Reward terms that read named XML sensors live in sensor_reward_terms.py
and build on the SensorTermBase cold-path binding contract defined here.
Functions
|
Constant reward for every step, unconditional as in the legacy tasks. |
|
|
|
Classes
Cold-path named-sensor binding shared by locomotion manager terms. |
|
Penalize world-frame root height error for the flat-ground pilot. |
|
Count feet without contact while the configured velocity command is standing. |
|
Reward foot contact matching the configured stance portion of gait phase. |
|
Reward foot height near a target during the configured swing phase. |
|
Penalize selected joint displacement from the default pose with an L1 kernel. |
|
Four-foot phase observation with the legacy diagonal-trot ordering. |
|
Penalize selected joint deviation only below the commanded-motion threshold. |
- class unilab.tasks.locomotion.common.manager_terms.SensorTermBase[source]¶
Bases:
ManagerTermBaseCold-path named-sensor binding shared by locomotion manager terms.
- Parameters:
cfg (
ManagerTermBaseCfg)env (
ManagerBasedRlEnv)
- unilab.tasks.locomotion.common.manager_terms.alive(env)[source]¶
Constant reward for every step, unconditional as in the legacy tasks.
- Parameters:
env (
ManagerBasedRlEnv)- Return type:
- class unilab.tasks.locomotion.common.manager_terms.base_height_l2[source]¶
Bases:
ManagerTermBasePenalize world-frame root height error for the flat-ground pilot.
- Parameters:
cfg (
ManagerTermBaseCfg)env (
ManagerBasedRlEnv)
- class unilab.tasks.locomotion.common.manager_terms.feet_air_while_standing[source]¶
Bases:
ManagerTermBaseCount feet without contact while the configured velocity command is standing.
- Parameters:
cfg (
ManagerTermBaseCfg)env (
ManagerBasedRlEnv)
- class unilab.tasks.locomotion.common.manager_terms.feet_phase_contact[source]¶
Bases:
_FootSensorTermReward foot contact matching the configured stance portion of gait phase.
- Parameters:
cfg (
ManagerTermBaseCfg)env (
_GaitEnv)
- class unilab.tasks.locomotion.common.manager_terms.feet_phase_swing_height[source]¶
Bases:
_FootSensorTermReward foot height near a target during the configured swing phase.
- Parameters:
cfg (
ManagerTermBaseCfg)env (
_GaitEnv)
- class unilab.tasks.locomotion.common.manager_terms.joint_deviation_l1[source]¶
Bases:
ManagerTermBasePenalize selected joint displacement from the default pose with an L1 kernel.
- Parameters:
cfg (
ManagerTermBaseCfg)env (
ManagerBasedRlEnv)
- class unilab.tasks.locomotion.common.manager_terms.quadruped_gait_phase[source]¶
Bases:
_GaitTermFour-foot phase observation with the legacy diagonal-trot ordering.
- Parameters:
cfg (
ManagerTermBaseCfg)env (
_GaitEnv)
- class unilab.tasks.locomotion.common.manager_terms.stand_still_l1[source]¶
Bases:
joint_deviation_l1Penalize selected joint deviation only below the commanded-motion threshold.
- Parameters:
cfg (
ManagerTermBaseCfg)env (
ManagerBasedRlEnv)