qgallouedec / panda-gym

Set of robotic environments based on PyBullet physics engine and gymnasium.
MIT License
492 stars 106 forks source link

change the observation and return #90

Closed ChenyangRan closed 1 month ago

ChenyangRan commented 1 month ago

Hi, thanks for your working. My code only supports gym standard output (a, s, r, info), and I don't want the state space to be a dictionary, please tell me where I can change this output.

qgallouedec commented 1 month ago

Hey, I would advice to update your code to support gymnasium. Otherwise you can wrap your environment to return done (terminated or truncated) For the dict observation you can use the flatten wrapper from gymnasium