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

Reproducibility via explicitly setting random seed? #4613

Open
LemonPi opened this issue May 8, 2024 Discussed in #4612 · 0 comments
Open

Reproducibility via explicitly setting random seed? #4613

LemonPi opened this issue May 8, 2024 Discussed in #4612 · 0 comments

Comments

@LemonPi
Copy link

LemonPi commented May 8, 2024

Discussed in #4612

Originally posted by LemonPi May 8, 2024
I'd like to be able to reproduce robot-object interaction trajectories, however the objects behave different (bounce to a different position) even when I use the same random seed. Is there a way to ensure reproducible simulations?

I'm setting the seed for python, numpy, and pytorch:

    random.seed(randseed)
    np.random.seed(randseed)
    torch.manual_seed(randseed)
    if torch.cuda.is_available():
        torch.cuda.manual_seed_all(randseed)

Does pybullet use a C++ RNG that we can set the seed for?

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

1 participant