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

[Feature Request] Do this project support like gym.vector.asyncvecenv? #309

Open
1 task
wsty1234 opened this issue Jul 11, 2024 · 3 comments
Open
1 task
Assignees

Comments

@wsty1234
Copy link

Motivation

Please outline the motivation for the proposal.
Is your feature request related to a problem? e.g., "I'm always frustrated when [...]".
If this is related to another issue, please link here too.

Solution

A clear and concise description of what you want to happen.

Alternatives

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

Checklist

  • I have checked that there is no similar issue in the repo (required)
@wsty1234 wsty1234 changed the title [Feature Request] Do this project support like [Feature Request] Do this project support like gym.vector.asyncvecenv? Jul 11, 2024
@wsty1234
Copy link
Author

sorry, first time use this function.

My problem is that my custom env need to pass a unique parameter to init the env. like an Id. with gym.ayncvectorenv i can use the lambda function to generate this kind of vec envs. But How can i do this with envpool?

@Trinkle23897
Copy link
Collaborator

what's your customized env? is it already in envpool implementation?

@wsty1234
Copy link
Author

what's your customized env? is it already in envpool implementation?

Thank you for your reply.

My env is just like pendulum v0.

env = gym.vector.AsyncVectorEnv([
lambda: gym.make("Pendulum-v0", g=9.81),
lambda: gym.make("Pendulum-v0", g=1.62)
])

I'd like to pass different g to each new environment. If there is a way to do this in envpool, please let me know!

Thank you so much.

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