Skip to content

Commit

Permalink
Add return_image to dm_control
Browse files Browse the repository at this point in the history
Signed-off-by: guillemdb <[email protected]>
  • Loading branch information
Guillemdb committed Sep 1, 2024
1 parent 74afcd6 commit 776db02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plangym/control/dm_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def __init__(
render_mode="rgb_array",
obs_type: str | None = None,
remove_time_limit=None, # noqa: ARG002
return_image: bool = False,
):
"""Initialize a :class:`DMControlEnv`.
Expand All @@ -69,6 +70,7 @@ def __init__(
render_mode: None|human|rgb_array.
remove_time_limit: Ignored.
obs_type: One of {"coords", "rgb", "grayscale"}.
return_image: If ``True``, add a "rgb" key to the observation dict.
"""
self._visualize_reward = visualize_reward
Expand All @@ -84,6 +86,7 @@ def __init__(
autoreset=autoreset,
render_mode=render_mode,
obs_type=obs_type,
return_image=return_image,
)

@property
Expand Down

0 comments on commit 776db02

Please sign in to comment.