-
Notifications
You must be signed in to change notification settings - Fork 70
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
global exotica seed #626
Comments
A call to |
Indeed, I create the problem more than once. Sometimes I do this to obtain properties of the kinematic tree, before configuring the actual task. As a workaround, you could reset the seed every time the problem is created. However, I think in my particular problem the issue is that the seed for the This does not scale well, if you have many more random number generators in exotica. I am therefore wondering if EXOTica should have a global seed that is determined when it is instantiated. This global-seed would then be used to draw new seeds for any generator in EXOTica. This way, you can reset generators, but deterministically. |
Makes sense - where would you suggest to place it? |
Since there are many entry points to initialise exotica, I am not sure about this. It appears to me that |
OMPL solvers. I think |
I added a
KinematicTree::SetSeed
method in #487 to allow reproducible sampling of configurations.A call to
KinematicTree::BuildTree
resets the random number generator:exotica/exotica_core/src/kinematic_tree.cpp
Line 283 in 7905a39
Q1: Is this reset of the
generator_
required? Can it be removed or should we replacerd_()
by the user set seed?I think it would be good if EXOTica would keep a global seed for all random number generator that may be used in solvers, tasks, etc., to enable reproducible results and easier debugging. This seed would be determined once at the beginning and all random number generators would need to use the same seed, e.g. an
exotica::seed()
that either returns a random or static user chosen seed.Q2: Does this sound feasible? What would be a good approach to make sure that all random number generators use the same seed?
The text was updated successfully, but these errors were encountered: