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

Fail to support different envs #46

Open
glx15534565855 opened this issue Jul 13, 2023 · 5 comments
Open

Fail to support different envs #46

glx15534565855 opened this issue Jul 13, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@glx15534565855
Copy link

Hello! I am currently attempting to train robots in different environments using a set of networks, but I have encountered an issue where it seems that isaacgym does not support creating more than one environment. The following code and error message provide a brief explanation:

def train(args):
    env, env_cfg = task_registry.make_env(name=args.task, args=args) # args.task = 'anymal_c_flat'
    args_ = copy.deepcopy(args)
    args_.task = 'cassie'
    env_, env_cfg_ = task_registry.make_env(name=args_.task, args=args_)

And after running it, the console shows:

/buildAgent/work/99bede84aa0a52c2/source/foundation/FdFoundation.cpp (166) : invalid operation : Foundation object exists already. Only one instance per process can be created.

@glx15534565855 glx15534565855 added the bug Something isn't working label Jul 13, 2023
@dipampatel18
Copy link

@glx15534565855 Were you able to create the new env? I am also working on that.

@glx15534565855
Copy link
Author

glx15534565855 commented Dec 10, 2023 via email

@yingchengyang
Copy link

@glx15534565855 Thanks a lot for your issue, I have met the same problem. How do you solve it? For example, if I hope to create two environments 'anymal_c_flat' and 'cassie', how can I achieve it?

@yaocj97
Copy link

yaocj97 commented Jun 14, 2024

@glx15534565855 Thanks a lot for your issue, I have met the same problem. How do you solve it? For example, if I hope to create two environments 'anymal_c_flat' and 'cassie', how can I achieve it?

@yingchengyang Have you solved the issue?
I guess the solution by @glx15534565855 means diving into the lower level of code and creating multiple heterogenous actors (and before that, envs) in a single sim. But to my knowledge, envs in a single sim can only take steps simultaneously. Do you have any idea if I want to specify which env to step?

@yingchengyang
Copy link

No, I have not solved this problem. I would appreciate a lot if you have any ideas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants