[Question] Accessing per-environment observations #3191
Replies: 2 comments
-
Thank you for posting this. Each index along the first dimension ( If you want the observation for environment rgb_obs = self._camera.data.output['rgb'][i] # shape [100, 100, 3] This gives you the image for the desired environment. The system does not remap individual data for you—it is up to your logic to index the correct slice. Let us know if this helped. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply, but I am more concerned with the implementation in the configuration of the environment. The issue im seeing is that all environments behave in the same way before shortly blowing up with NaNs and inf values and I want to make sure I am applying my forces and torques correctly as well as attaining the correct observation for each environment. So if I want to access the lin_vel from my imu in the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I am creating a DirectRLEnv and am looking at creating the observations for my environment. Currently when I run the simulation i set the number of envs to 4. When I call for example
self._camera.data.output['rgb']
it gives me an output that is of sizetorch.Size([4, 100, 100, 3])
, which makes sense. But my question is, how should I go about getting the observation for the specific environment, because each environment would be different so if I hard code the observation to be the [0] dimension won't that always return the first environments data? Or is this handled on the back end?Beta Was this translation helpful? Give feedback.
All reactions