-
For example my env step returns Thanks for reviewing and helping. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @ErcBunny You can take a look at the Isaac Lab env wrapper that also return a dictionary as observation: skrl/skrl/envs/wrappers/torch/isaaclab_envs.py Lines 31 to 32 in 636936f |
Beta Was this translation helpful? Give feedback.
Hi @ErcBunny
Since memory only support tensors (not collection of tensors: dict, tuples, etc.) it is necessary to convert the observation dict (assuming it is a
gymnasium.space.Dict
space) as flattened tensor in the wrapper. Then, in the model, you can map the flattened tensor to the gymnasium space again using theModel.tensor_to_space
method.For converting the space to flattened tensor see the gymnasium wrapper
_observation_to_tensor
method used inskrl/skrl/envs/wrappers/torch/gymnasium_envs.py
Line 129 in 636936f
Also, see the DeepMind Manipulation: Reach Site Vision
dm_manipulation_stack_sac.py
example that sho…