Skip to content

The range of obs in individual_observation_names #58

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

Closed
GoingMyWay opened this issue Jul 21, 2022 · 4 comments
Closed

The range of obs in individual_observation_names #58

GoingMyWay opened this issue Jul 21, 2022 · 4 comments

Comments

@GoingMyWay
Copy link

GoingMyWay commented Jul 21, 2022

Hi, I found no value range of observations in individual_observation_names.

For example: the individual_observation_names of clean_up is

['RGB', 'READY_TO_SHOOT', 'POSITION', 'ORIENTATION']

It is available via the following code:

from meltingpot.python import substrate
env_config = substrate.get_config(substrate_name)
individual_observation_names = env_config.individual_observation_names

The shape of each individual observation is available, such as env_config.timestep_spec.observation['POSITION']. However, the range of each observation is not available.

@duenez
Copy link
Contributor

duenez commented Jul 22, 2022

That is correct. In principle these are substrate dependent. In particular, POSITION can span the size of the map (as integers). ORIENTATION can be 0-4 inclusive. and READY_TO_SHOOT is between 0 and 1 (float, inclusive). RGB is between 0-255 uint8, inclusive.

@GoingMyWay
Copy link
Author

That is correct. In principle these are substrate dependent. In particular, POSITION can span the size of the map (as integers). ORIENTATION can be 0-4 inclusive. and READY_TO_SHOOT is between 0 and 1 (float, inclusive). RGB is between 0-255 uint8, inclusive.

I see. Thank you. It would be great if the range could be added in the `env_config.

@jzleibo
Copy link
Collaborator

jzleibo commented Jul 22, 2022 via email

@GoingMyWay
Copy link
Author

POSITION and ORIENTATION are meant to be just for debugging... They weren't intended to be actual observations used by RL agents.

On Fri, Jul 22, 2022 at 4:04 PM GoingMyWay @.> wrote: That is correct. In principle these are substrate dependent. In particular, POSITION can span the size of the map (as integers). ORIENTATION can be 0-4 inclusive. and READY_TO_SHOOT is between 0 and 1 (float, inclusive). RGB is between 0-255 uint8, inclusive. I see. Thank you. It would be great if the range could be added in the `env_config. — Reply to this email directly, view it on GitHub <#58 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHFJWTMUQA3PLXS7NHXGDLVVKZ67ANCNFSM54F34DVA . You are receiving this because you are subscribed to this thread.Message ID: @.>

Noted with thanks. Thank you!

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

3 participants