17 #ifndef GZ_SIM_SERVER_HH_
18 #define GZ_SIM_SERVER_HH_
24 #include <gz/sim/config.hh>
26 #include <gz/sim/Export.hh>
29 #include <sdf/Element.hh>
30 #include <sdf/Plugin.hh>
37 inline namespace GZ_SIM_VERSION_NAMESPACE {
134 const std::chrono::steady_clock::duration &_updatePeriod,
135 const unsigned int _worldIndex = 0);
152 public:
bool Run(
const bool _blocking =
false,
153 const uint64_t _iterations = 0,
154 const bool _paused =
true);
163 public:
bool RunOnce(
const bool _paused =
true);
180 public: std::optional<bool>
Running(
const unsigned int _worldIndex)
const;
190 const unsigned int _worldIndex = 0)
const;
199 const unsigned int _worldIndex = 0)
const;
206 const unsigned int _worldIndex = 0)
const;
212 const unsigned int _worldIndex = 0)
const;
218 const unsigned int _worldIndex = 0)
const;
228 const unsigned int _worldIndex = 0);
242 std::optional<Entity> _entity,
244 const unsigned int _worldIndex = 0);
256 const sdf::Plugin &_plugin,
257 std::optional<Entity> _entity,
258 const unsigned int _worldIndex = 0);
268 const unsigned int _worldIndex = 0);
282 std::optional<Entity> _entity,
284 const unsigned int _worldIndex = 0);
295 const unsigned int _worldIndex = 0)
const;
304 const unsigned int _worldIndex = 0)
const;
320 bool _recursive =
true,
321 const unsigned int _worldIndex = 0);
335 bool _recursive =
true,
336 const unsigned int _worldIndex = 0);