You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposal (after some discussions with @kellyguo11): Define the spaces using both: gym.spaces and python basic data types (for simplicity) indistinctly in env configs files as follows. Use the names observation_space, action_space and state_space rather than num_observations, num_actions and num_spaces in configs files to define them respectively.
I am not a huge fan of having to manually specify this space since users (in robotics at least) are usually changing the observations and actions on the fly while prototyping the environment. Changing the observation function and then the gym.Space for it seems cumbersome and requires "counting" dimensions (which is very erroneous).
Particuarly, for the manager based environment workflow, we expect users to only provide the "terms" and we infer everything from those terms. Having to specify the numbers for explicit spaces would add more steps for the user (unless we can think of a nicer solution).
But in general, I agree. We should handle spaces somewhat correctly.
Activity
Toni-SM commentedon Sep 15, 2024
Proposal (after some discussions with @kellyguo11): Define the spaces using both: gym.spaces and python basic data types (for simplicity) indistinctly in env configs files as follows. Use the names
observation_space,action_spaceandstate_spacerather thannum_observations,num_actionsandnum_spacesin configs files to define them respectively.Fundamental spaces:
Box10,[64, 64, 3])Discrete{2})MultiDiscrete[{2}, {5}])Composite spaces:
Dict{"joints": 10, "camera": [64, 64, 3], "gripper": {2}})Tuple(10, [64, 64, 3], {2}))Mayankm96 commentedon Sep 16, 2024
I am not a huge fan of having to manually specify this space since users (in robotics at least) are usually changing the observations and actions on the fly while prototyping the environment. Changing the observation function and then the gym.Space for it seems cumbersome and requires "counting" dimensions (which is very erroneous).
Particuarly, for the manager based environment workflow, we expect users to only provide the "terms" and we infer everything from those terms. Having to specify the numbers for explicit spaces would add more steps for the user (unless we can think of a nicer solution).
But in general, I agree. We should handle spaces somewhat correctly.
Support other gymnasium spaces in Direct workflow (#1117)
Support other gymnasium spaces in Direct workflow (isaac-sim#1117)
Antoine/isaac lab merge (#9)
Support other gymnasium spaces in Direct workflow (isaac-sim#1117)