unilab.envs.locomotion.common.commands¶
Functions
|
In-place P-control on heading error → |
|
Uniformly sample heading targets from |
|
|
|
Zero |
Classes
Commands(vel_limit: 'list[list[float]]' = <factory>, resampling_time: 'float' = 0.0, heading_command: 'bool' = False, heading_range: 'list[float]' = <factory>, heading_control_stiffness: 'float' = 0.5, rel_standing_envs: 'float' = 0.0) |
- class unilab.envs.locomotion.common.commands.Commands[source]¶
Bases:
objectCommands(vel_limit: ‘list[list[float]]’ = <factory>, resampling_time: ‘float’ = 0.0, heading_command: ‘bool’ = False, heading_range: ‘list[float]’ = <factory>, heading_control_stiffness: ‘float’ = 0.5, rel_standing_envs: ‘float’ = 0.0)
- Parameters:
- __init__(vel_limit=<factory>, resampling_time=0.0, heading_command=False, heading_range=<factory>, heading_control_stiffness=0.5, rel_standing_envs=0.0)¶
- unilab.envs.locomotion.common.commands.sample_velocity_commands(rng, num_samples, low, high)[source]¶
- unilab.envs.locomotion.common.commands.zero_small_xy_commands(commands, *, threshold=0.2)[source]¶
Zero
commands[:, :2]in-place wherever its norm is belowthreshold.
- unilab.envs.locomotion.common.commands.sample_heading_commands(env, num_samples)[source]¶
Uniformly sample heading targets from
env.cfg.commands.heading_range.