How to make the position of nodes randomly generated after the world resets? #4514
xiaoxiao-ji
announced in
Q&A
Replies: 1 comment 1 reply
-
You can use the supervisor to move objects/robots around, the process is explained in the first two sections of this tutorial: https://cyberbotics.com/doc/guide/tutorial-8-the-supervisor |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
System
I wrote a custom gym environment for the NAO robot according to the .\Webots\projects\samples\howto\openai_gym using the Supervisor class, I want to accomplish random generation of the position of NAO robot after the environment is reset to facilitate the training of the subsequent agent. But the problem I have now is that once the .wbt file in webots is saved, the position of the NAO robot is fixed. I don't know what methods or statements should be used to reset the gym environment to make the location of NAO node change accordingly.
Beta Was this translation helpful? Give feedback.
All reactions