We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It should be possible to pass a custom seed to the random number generator from the CLI. For example:
gz sim --seed 123 my_pseudo_random_world.sdf
Don't use the CLI and instead instantiate the simulator through a custom C++ program. This way, the seed can be passed to ServerConfig::SetSeed:
ServerConfig::SetSeed
https://github.com/ignitionrobotics/ign-gazebo/blob/49fb65fc2a079303bfe47f0a92983179363e0f04/include/ignition/gazebo/ServerConfig.hh#L307-L309
--seed
It looks like we supported the --seed option on Blueprint, see fe9cbdf. But we missed it when migrating from server_main.cc to ign.cc in 7dbc19e.
server_main.cc
ign.cc
The text was updated successfully, but these errors were encountered:
Addressed here : #1618
Sorry, something went wrong.
adityapande-1995
Successfully merging a pull request may close this issue.
Desired behavior
It should be possible to pass a custom seed to the random number generator from the CLI. For example:
gz sim --seed 123 my_pseudo_random_world.sdf
Alternatives considered
Don't use the CLI and instead instantiate the simulator through a custom C++ program. This way, the seed can be passed to
ServerConfig::SetSeed
:https://github.com/ignitionrobotics/ign-gazebo/blob/49fb65fc2a079303bfe47f0a92983179363e0f04/include/ignition/gazebo/ServerConfig.hh#L307-L309
Implementation suggestion
--seed
option to cmdgazebo.rb.inServerConfig::SetSeed
Additional context
It looks like we supported the
--seed
option on Blueprint, see fe9cbdf. But we missed it when migrating fromserver_main.cc
toign.cc
in 7dbc19e.The text was updated successfully, but these errors were encountered: