Skip to content

Commit

Permalink
Update BaseAviary.py
Browse files Browse the repository at this point in the history
Comments on the Gym v26 update
  • Loading branch information
JacopoPan authored Mar 7, 2023
1 parent 3fc246f commit 6bab1f6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions gym_pybullet_drones/envs/BaseAviary.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ def reset(self):
ndarray | dict[..]
The initial observation, check the specific implementation of `_computeObs()`
in each subclass for its format.
TODO UPDATE TO GYM v26
reset() further returns info, similar to the info returned by step().
This is important because info can include metrics or valid action mask
that is used or saved in the next step.
"""
p.resetSimulation(physicsClientId=self.CLIENT)
Expand Down Expand Up @@ -269,6 +274,10 @@ def step(self,
dict[..]
Additional information as a dictionary, check the specific implementation of `_computeInfo()`
in each subclass for its format.
TODO UPDATE TO GYM v26
For users wishing to update, in most cases, replacing done with terminated and truncated=False
in step() should address most issues.
"""
#### Save PNG video frames if RECORD=True and GUI=False ####
Expand Down

0 comments on commit 6bab1f6

Please sign in to comment.