unilab.tasks.locomotion.go2w.manager_terms¶
Manager-Based terms owned by the Go2W flat task.
Functions
|
|
|
|
|
|
|
|
|
Sample owner-level motor gains without mutating backend actuator models. |
|
Classes
Convert one community action term into Go2W motor torques per substep. |
|
Configure the Go2W leg-position and wheel-velocity motor action. |
|
Velocity command with the legacy Go2W planar dead zone. |
- class unilab.tasks.locomotion.go2w.manager_terms.Go2WMixedAction[source]¶
Bases:
ActionTermConvert one community action term into Go2W motor torques per substep.
- Parameters:
cfg (
Go2WMixedActionCfg)env (
ManagerBasedRlEnv)
-
requires_substep_state_feedback:
ClassVar[bool] = True¶ Whether
apply_actionsneeds state produced by the previous physics substep.Falsedeclares that the generated control is invariant across all physics substeps in one control step, so the env may apply it once before a batched backend step. State-feedback terms must override this declaration withTrue.
-
cfg:
Go2WMixedActionCfg¶
- __init__(cfg, env)[source]¶
- Parameters:
cfg (
Go2WMixedActionCfg)env (
ManagerBasedRlEnv)
- class unilab.tasks.locomotion.go2w.manager_terms.Go2WMixedActionCfg[source]¶
Bases:
ActionTermCfgConfigure the Go2W leg-position and wheel-velocity motor action.
- Parameters:
- build(env)[source]¶
Build the action term from this config.
- Parameters:
env (
ManagerBasedRlEnv)- Return type:
- __init__(*, entity_name, clip=None, actuator_names, leg_action_scale=0.25, hip_action_scale=None, wheel_action_scale=10.0, leg_kp=35.0, leg_kd=0.5, wheel_kd=0.5, clip_actions=1.0, simulate_action_latency=False)¶
- class unilab.tasks.locomotion.go2w.manager_terms.Go2WVelocityCommand[source]¶
Bases:
UniformVelocityCommand- Parameters:
cfg (
Go2WVelocityCommandCfg)env (
ManagerBasedRlEnv)
- __init__(cfg, env)[source]¶
- Parameters:
cfg (
Go2WVelocityCommandCfg)env (
ManagerBasedRlEnv)
- class unilab.tasks.locomotion.go2w.manager_terms.Go2WVelocityCommandCfg[source]¶
Bases:
UniformVelocityCommandCfgVelocity command with the legacy Go2W planar dead zone.
- Parameters:
resampling_time_range (tuple[float, float])
debug_vis (bool)
entity_name (str)
heading_command (bool)
heading_control_stiffness (float)
rel_standing_envs (float)
rel_heading_envs (float)
rel_world_envs (float)
rel_forward_envs (float)
init_velocity_prob (float)
ranges (Ranges)
viz (VizCfg)
planar_dead_zone (float)
- planar_dead_zone: float = 0.2¶
- build(env)[source]¶
Build the command term from this config.
- Parameters:
env (
ManagerBasedRlEnv)- Return type:
- __init__(*, resampling_time_range, debug_vis=False, entity_name, heading_command=False, heading_control_stiffness=1.0, rel_standing_envs=0.0, rel_heading_envs=1.0, rel_world_envs=0.0, rel_forward_envs=0.0, init_velocity_prob=0.0, ranges, viz=<factory>, planar_dead_zone=0.2)¶
- Parameters:
resampling_time_range (tuple[float, float])
debug_vis (bool)
entity_name (str)
heading_command (bool)
heading_control_stiffness (float)
rel_standing_envs (float)
rel_heading_envs (float)
rel_world_envs (float)
rel_forward_envs (float)
init_velocity_prob (float)
ranges (Ranges)
viz (VizCfg)
planar_dead_zone (float)
- unilab.tasks.locomotion.go2w.manager_terms.constant_alive(env)[source]¶
- Parameters:
env (
ManagerBasedRlEnv)- Return type:
- unilab.tasks.locomotion.go2w.manager_terms.randomize_motor_gains(env, env_ids, action_name, kp_multiplier_range, kd_multiplier_range)[source]¶
Sample owner-level motor gains without mutating backend actuator models.
- unilab.tasks.locomotion.go2w.manager_terms.upward_l2(env, asset_cfg=SceneEntityCfg(name='robot', joint_names=None, joint_ids=slice(None, None, None), body_names=None, body_ids=slice(None, None, None), geom_names=None, geom_ids=slice(None, None, None), site_names=None, site_ids=slice(None, None, None), actuator_names=None, actuator_ids=slice(None, None, None), tendon_names=None, tendon_ids=slice(None, None, None), camera_names=None, camera_ids=slice(None, None, None), light_names=None, light_ids=slice(None, None, None), material_names=None, material_ids=slice(None, None, None), texture_names=None, texture_ids=slice(None, None, None), pair_names=None, pair_ids=slice(None, None, None), preserve_order=False))[source]¶
- Parameters:
env (
ManagerBasedRlEnv)asset_cfg (
SceneEntityCfg)
- Return type: