Skip to content

[BUG] Terminal observation missing #33

@araffin

Description

@araffin

Describe the bug

Unless I'm mistaken, the env resets automatically when an episode is over, which means the terminal observation is not accessible to the agent which prevent from doing proper bootstrapping for infinite horizon problems.

See openai/gym#2484 and openai/gym#1632

Expected behavior

openai/gym#2484

Reason and Possible fixes

Add terminal_observation key to the info dict, as already done for the timelimit truncation.

Checklist

  • I have checked that there is no similar issue in the repo (required)
  • I have read the documentation (required)
  • I have provided a minimal working example to reproduce the bug (required)

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions