17 #ifndef IGNITION_GAZEBO_SERVERCONFIG_HH_ 18 #define IGNITION_GAZEBO_SERVERCONFIG_HH_ 26 #include <sdf/Element.hh> 27 #include <ignition/gazebo/config.hh> 28 #include <ignition/gazebo/Export.hh> 35 inline namespace IGNITION_GAZEBO_VERSION_NAMESPACE {
37 class ServerConfigPrivate;
45 class PluginInfoPrivate;
75 const sdf::ElementPtr &_sdf);
96 public:
void SetEntityName(
const std::string &_entityName);
108 public:
void SetEntityType(
const std::string &_entityType);
118 public:
void SetFilename(
const std::string &_filename);
132 public:
const sdf::ElementPtr &Sdf()
const;
136 public:
void SetSdf(
const sdf::ElementPtr &_sdf);
171 public:
bool SetSdfString(
const std::string &_sdfString);
180 public:
void SetUpdateRate(
const double &_hz);
185 public: std::optional<double> UpdateRate()
const;
189 public:
bool UseLevels()
const;
193 public:
void SetUseLevels(
const bool _levels);
199 public:
bool UseDistributedSimulation()
const;
207 public:
void SetNetworkSecondaries(
unsigned int _secondaries);
213 public:
unsigned int NetworkSecondaries()
const;
222 public:
void SetNetworkRole(
const std::string &_role);
233 public:
bool UseLogRecord()
const;
237 public:
void SetUseLogRecord(
const bool _record);
245 public:
void SetLogRecordPath(
const std::string &_recordPath);
259 public:
void AddLogRecordTopic(
const std::string &_topic);
263 public:
void ClearLogRecordTopics();
276 public:
void SetLogPlaybackPath(
const std::string &_playbackPath);
280 public:
bool LogRecordResources()
const;
284 public:
void SetLogRecordResources(
bool _recordResources);
292 public:
void SetLogRecordCompressPath(
const std::string &_path);
296 public:
unsigned int Seed()
const;
300 public:
void SetSeed(
unsigned int _seed);
305 public: std::optional<std::chrono::steady_clock::duration>
306 UpdatePeriod()
const;
320 public:
void SetResourceCache(
const std::string &_path);
328 public:
void SetPhysicsEngine(
const std::string &_physicsEngine);
332 public:
const std::string &RenderEngineServer()
const;
336 public:
const std::string &RenderEngineGui()
const;
340 public:
void SetRenderEngineServer(
345 public:
void SetRenderEngineGui(
const std::string &_renderEngineGui);
350 public:
void AddPlugin(
const PluginInfo &_info);
Configuration parameters for a Server. An instance of this object can be used to construct a Server w...
Definition: ServerConfig.hh:43
Component< std::string, class NameTag, serializers::StringSerializer > Name
This component holds an entity's name. The component has no concept of scoped names nor does it care ...
Definition: Name.hh:37
#define IGN_DEPRECATED(version)
std::chrono::steady_clock::time_point Timestamp
Information about a plugin that should be loaded by the server. Currently supports attaching a plugi...
Definition: ServerConfig.hh:52
This library is part of the Ignition Robotics project.