23 #include <boost/program_options.hpp>
24 #include <boost/thread.hpp>
54 public:
void PrintUsage();
60 public:
bool ParseArgs(
int _argc,
char **_argv);
64 public:
bool PreLoad();
70 public:
bool LoadFile(
const std::string &_filename=
"worlds/empty.world",
71 const std::string &_physics=
"");
76 public:
bool LoadString(
const std::string &_sdfString);
93 public:
bool GetInitialized()
const;
98 private:
bool LoadImpl(sdf::ElementPtr _elem,
99 const std::string &_physics=
"");
103 private:
static void SigInt(
int _v);
106 private:
void ProcessParams();
110 private:
void OnControl(ConstServerControlPtr &_msg);
115 private:
bool OpenWorld(
const std::string &_filename);
118 private:
void ProcessControlMsgs();
121 private:
static bool stop;
133 private: boost::mutex receiveMutex;
136 private: std::list<msgs::ServerControl> controlMsgs;
142 private: boost::program_options::variables_map vm;
145 private:
bool initialized;
148 private:
int systemPluginsArgc;
151 private:
char **systemPluginsArgv;