Skip to content

allenact_plugins.gym_plugin.gym_tasks#

[view_source]

GymTask#

class GymTask(Task[gym.Env])

[view_source]

Abstract gym task.

Subclasses need to implement class_action_names and _step.

GymContinuousTask#

class GymContinuousTask(GymTask)

[view_source]

Task for a continuous-control gym Box2D & MuJoCo Env; it allows interfacing allenact with gym tasks.

task_selector#

task_selector(env_name: str) -> type

[view_source]

Helper function for GymTaskSampler.

sensor_selector#

sensor_selector(env_name: str) -> Sensor

[view_source]

Helper function for GymTaskSampler.

GymTaskSampler#

class GymTaskSampler(TaskSampler)

[view_source]

TaskSampler for gym environments.