Set randomSeed to Webots World for correct reproducibility #6085
Closed
angel-ayala
announced in
Q&A
Replies: 1 comment
-
Could you please post this question to https://robotics.stackexchange.com/ with the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to set the seed value for random number generator and as mentioned in the documentation that value must be set in the
randomSeed
field from theWorldInfo
Node.I know that using the
Supevisor
I can change the field values in any Node during runtime. Can this be done?Or which is the correct way to set that value?
In Python I'm currently using this line of code to set a
seed
value.self.__robot.getFromDef('World').getField('randomSeed').setSFInt32(0 if seed is None else seed)
Beta Was this translation helpful? Give feedback.
All reactions