-
Notifications
You must be signed in to change notification settings - Fork 142
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
get_action_space_info not complete #15
Comments
Could you provide a minimal test case code sample to help with debugging and testing? |
Sure here you go: import logging
import os, sys
import numpy as np
from gym_http_client import Client
remote_base = 'http://127.0.0.1:5000'
client = Client(remote_base)
env_id = 'Copy-v0'
instance_id = client.env_create(env_id)
print(client.env_action_space_info(instance_id)) |
To elaborate on this _get_space_properties does not seem to be fully implemented to support all properties, see: https://github.com/openai/gym-http-api/blob/master/gym_http_server.py#L92 |
indeed... if we can specify how to serialize a Tuple to json then i can add that case in the server code... |
Potentially addressed with recent commit: 1b42f25 Does this get at exactly what you need? If so, then it is a matter of implementing something similar in the info call as what is in the sample call. |
The problem is with the environment - |
The function get_action_space_info does not return the action space when the action space contains a Tuple. It will just return
{'name': 'Tuple'}
. Tested on Copy-v0.The text was updated successfully, but these errors were encountered: