-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[RLlib] External env enhancements + more examples. #16583
[RLlib] External env enhancements + more examples. #16583
Conversation
…rnal_env_more_examples
…rnal_env_more_examples
…rnal_env_more_examples
…rnal_env_more_examples
…fix_bc_loss_term # Conflicts: # rllib/evaluation/sampler.py
…fix_bc_loss_term # Conflicts: # rllib/evaluation/sampler.py
…rnal_env_more_examples # Conflicts: # rllib/evaluation/rollout_worker.py
sleep 1 | ||
done | ||
|
||
# Start client 1 (port 9900). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this do?
"""Renders a single environment. | ||
|
||
Args: | ||
index (Optional[int]): An optional sub-env index to render. | ||
|
||
Returns: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(w,h,3)
from ray.rllib.env.apis.task_settable_env import TaskSettableEnv | ||
|
||
|
||
class AntRandGoalEnv(gym.utils.EzPickle, MujocoEnv, TaskSettableEnv): | ||
class AntRandGoalEnv(EzPickle, MujocoEnv, TaskSettableEnv): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:) sg
|
||
# TODO: (sven) make these settings unnecessary and get the information | ||
# about the env spaces from the client. | ||
"observation_space": gym.spaces.Box( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this implicit in the environment defined?
This PR:
Why are these changes needed?
Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.