rofunc.learning.RofuncRL.tasks.isaacgymenv.hotu.humanoid#
1. Module Contents#
1.1. Classes#
This class is a wrapper of the Isaac Gym environment for the Humanoid task. |
1.2. Functions#
1.3. API#
- class rofunc.learning.RofuncRL.tasks.isaacgymenv.hotu.humanoid.Humanoid(config, rl_device, sim_device, graphics_device_id, headless, virtual_screen_capture, force_render)[source]#
Bases:
rofunc.learning.RofuncRL.tasks.isaacgymenv.base.vec_task.VecTaskThis class is a wrapper of the Isaac Gym environment for the Humanoid task.
Initialization
Initialise the VecTask.
- Args:
config: config dictionary for the environment. sim_device: the device to simulate physics on. eg. ‘cuda:0’ or ‘cpu’ graphics_device_id: the device ID to render with. headless: Set to False to disable viewer rendering. virtual_screen_capture: Set to True to allow the users get captured screen in RGB array via env.render(mode=’rgb_array’). force_render: Set to True to always force rendering in the steps (if the control_freq_inv is greater than 1 we suggest stting this arg to True)
- rofunc.learning.RofuncRL.tasks.isaacgymenv.hotu.humanoid.dof_to_obs(pose: Tensor, dof_obs_size: int, dof_offsets: List[int]) Tensor#
- rofunc.learning.RofuncRL.tasks.isaacgymenv.hotu.humanoid.compute_humanoid_observations(root_pos: Tensor, root_rot: Tensor, root_vel: Tensor, root_ang_vel: Tensor, dof_pos: Tensor, dof_vel: Tensor, key_body_pos: Tensor, local_root_obs: bool, root_height_obs: bool, dof_obs_size: int, dof_offsets: List[int]) Tensor#
- rofunc.learning.RofuncRL.tasks.isaacgymenv.hotu.humanoid.compute_humanoid_observations_max(body_pos: Tensor, body_rot: Tensor, body_vel: Tensor, body_ang_vel: Tensor, local_root_obs: bool, root_height_obs: bool) Tensor#
- rofunc.learning.RofuncRL.tasks.isaacgymenv.hotu.humanoid.compute_humanoid_reward(obs_buf: Tensor) Tensor#
- rofunc.learning.RofuncRL.tasks.isaacgymenv.hotu.humanoid.compute_humanoid_reset(reset_buf: Tensor, progress_buf: Tensor, contact_buf: Tensor, contact_body_ids: Tensor, rigid_body_pos: Tensor, max_episode_length: float, enable_early_termination: bool, termination_heights: Tensor) Tuple[Tensor, Tensor]#