Replies: 2 comments 8 replies
-
Why don't you add the "extra" key in the observation spec? The following code does that and using the AutoResetTransform seems to work fine. I hope it helps.
|
Beta Was this translation helpful? Give feedback.
7 replies
-
Since my extra keys only provide extra information on top of conventional "done", "terminated", and "truncated", I think a workaround is to create a subclass deriving from @albertbou92 Do you think it is okay to do so without introducing other problems? Thank you. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you for viewing my question!
I am trying to write my own environment
MyEnv
by subclassing theEnvBase
. My environment spawns an Isaac Gym environment which is auto-resetting, so I am trying the following code to wrap auto-reset transforms to my env.And I am stuck with this error:
"A 'done' key was a string but a tuple was expected."
if I try to put other fields in thedone_spec
like the following.And the error is gone without
"extra"
in the spec because that is the case of_simple_done
. But I would really like to have the extra field for my application. Any idea how to do it correctly? Thank you!Beta Was this translation helpful? Give feedback.
All reactions