unilab.envs.mdp.commands.velocity_command.UniformVelocityCommandCfg¶
- class unilab.envs.mdp.commands.velocity_command.UniformVelocityCommandCfg[source]¶
Bases:
CommandTermCfgConfiguration for uniformly sampled planar velocity commands.
- 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)
Methods
Attributes
Whether to enable debug visualization for this command term.
Time range in seconds for command resampling.
- entity_name: str¶
- heading_command: bool = False¶
- heading_control_stiffness: float = 1.0¶
- rel_standing_envs: float = 0.0¶
- rel_heading_envs: float = 1.0¶
- rel_world_envs: float = 0.0¶
- rel_forward_envs: float = 0.0¶
- init_velocity_prob: float = 0.0¶
- class Ranges[source]¶
Bases:
objectRanges(lin_vel_x: ‘tuple[float, float]’, lin_vel_y: ‘tuple[float, float]’, ang_vel_z: ‘tuple[float, float]’, heading: ‘tuple[float, float] | None’ = None)
- Parameters:
- ranges: Ranges¶
- viz: VizCfg¶
- 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>)¶
- 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)
- debug_vis: bool = False¶
Whether to enable debug visualization for this command term. When True, the command term’s
_debug_vis_implmethod is called each frame to render visual aids (e.g., velocity arrows, target markers).
- resampling_time_range: tuple[float, float]¶
Time range in seconds for command resampling. When the timer expires, a new command is sampled and the timer is reset to a value uniformly drawn from
[min, max]. Set both values equal for fixed-interval resampling.