unilab.tasks.motion_tracking.common.tensor_sampler.MotionSampler

class unilab.tasks.motion_tracking.common.tensor_sampler.MotionSampler[source]

Bases: object

Torch-native adaptive/mixed motion sampler for MotionCommand.

Parameters:

Methods

__init__(*, mode, num_envs, num_frames, ...)

sample_frames(reset_mask, torch_rng)

Sample full-width frames and publish only selected rows.

step_full(active, time_steps)

Advance and publish full-width frame mirrors without row gathers.

update_failure_stats(terminated)

Attributes

__init__(*, mode, num_envs, num_frames, clip_offsets, clip_end_frames, bin_count, adaptive_lambda, adaptive_kernel_size, adaptive_uniform_ratio, adaptive_alpha, start_ratio, initial_frames, initial_clip_end_frames, device)[source]
Parameters:
property bin_failed_count: Tensor
sample_frames(reset_mask, torch_rng)[source]

Sample full-width frames and publish only selected rows.

Parameters:
Return type:

Tensor

update_failure_stats(terminated)[source]
Parameters:

terminated (Tensor)

Return type:

None

step_full(active, time_steps)[source]

Advance and publish full-width frame mirrors without row gathers.

Parameters:
Return type:

Tensor