-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Question How to set bounds to my action and observation spaces and also change its type? #1264
Replies: 2 comments · 6 replies
-
The feature implemented in #1117 is documented in: You can define in your Direct task the spaces using the Gymnasium API (when a more detailed specification of the space is desired) as follows: import gymnasium as gym
@configclass
class CustomEnvCfg(DirectRLEnvCfg):
action_space = 1
state_space = 0
observation_space = gym.spaces.Box(low=-1.0, high=2.0, shape=(3, 4), dtype=np.float32) |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi @Toni-SM, I tried using a dict as specified in the doc. Now during training Hydra does not support the type can you please let me know if there are specific ways to give values to them? |
Beta Was this translation helpful? Give feedback.
All reactions
-
@Toni-SM Thanks for the reply, These are the details: EnvCfg :
Error:
If you require any other details please let me know and I can provide them |
Beta Was this translation helpful? Give feedback.
All reactions
-
I am adding the logs from terminal for more details :
|
Beta Was this translation helpful? Give feedback.
All reactions
-
The issue is due to Hydra/OmegaConf limitations with non-primitive types A solution is implemented in the Isaac Lab branch: fix/hydra_omegaconf_gymnasium_spaces |
Beta Was this translation helpful? Give feedback.
All reactions
-
Hi @Toni-SM thanks for working on the issue so quick. I tested the code and there are a couple of issues that I had :
cause :Even though i have not defined state space in the environment. It gets defined somewhere with none type when the code reaches
There is an error.
Since you only look for the attributes named observation_space, action_space and state_space. The code only serializes those variables. Code :
There are errors at two points here
No Issue Code :
|
Beta Was this translation helpful? Give feedback.
All reactions
-
|
Beta Was this translation helpful? Give feedback.
All reactions
This discussion was converted from issue #1262 on October 17, 2024 21:51.
-
This question is related to the recent commit #1117
I have a direct workflow environment. I want to specify the type and bonds for action spaces and observation spaces. I was not able to find the documentation to use this feature. Can you please let me know where is it?
Thanks and regards,
Chadra Mohan Jagadeesan
Beta Was this translation helpful? Give feedback.
All reactions