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

Fix mutable default robot object #61

Merged
merged 1 commit into from
Mar 29, 2021
Merged

Conversation

forcecore
Copy link
Contributor

@forcecore forcecore commented Jan 7, 2021

bulletphysics/bullet3#2352 : Fixes this problem.

The mutable robot object instance in the default init parameter caused the default robot object to be shared between multiple instances of environments.
For example, if you use stable-baselines3 (where they did the training and evaluation implementation RIGHT),
they have separate train and eval environment instantiated and the robot gets shared between the two.

Caused interference between the training environment and
the evaluation environment, if you use stable-baselines3
(where they did the training and evaluation implementation RIGHT)
@benelot
Copy link
Owner

benelot commented Mar 29, 2021

Oh well, mutable default parameters...Thanks!

@benelot benelot merged commit bc68201 into benelot:master Mar 29, 2021
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

Successfully merging this pull request may close these issues.

2 participants