Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract action space info #2

Closed
alfaevc opened this issue Nov 7, 2021 · 1 comment
Closed

Extract action space info #2

alfaevc opened this issue Nov 7, 2021 · 1 comment

Comments

@alfaevc
Copy link

alfaevc commented Nov 7, 2021

Hi, my peers and I are really confused about extracting the action space information from the environment i.e. env = environment.rgb_stacking(observation_set=environment.ObservationSet.VISION_ONLY, object_triplet='rgb_test_triplet1'). Can you provide any guidance on that? env.action_space is not the right way to do it obviously.

@alaurens
Copy link
Collaborator

alaurens commented Nov 7, 2021

Hello,

The command you are looking for is env.action_spec. That will return the spec of the action that the environment expects to receive. I hope this answers your question.

@alaurens alaurens closed this as completed Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants