unilab.envs.locomotion.common.rewards.RewardContext¶
- class unilab.envs.locomotion.common.rewards.RewardContext[source]¶
Bases:
objectImmutable snapshot of everything reward functions may read.
Built once per
_compute_rewardcall. Shared functions access only the fields they need; robot-specific methods that still live on the environment class receive the same context viaself.- Parameters:
Methods
__init__(info, linvel, gyro, dof_pos[, ...])Attributes
- __init__(info, linvel, gyro, dof_pos, num_envs=0, default_angles=<factory>, tracking_sigma=0.25, base_height_target=0.0, base_height=<factory>, gravity=None, dof_vel=None, pose_weights=None, joint_range=None, linvel_yaw=None)¶