7 #include <argos3/core/simulator/simulator.h>
8 #include <argos3/core/utility/plugins/dynamic_loading.h>
9 #include <argos3/core/simulator/query_plugins.h>
10 #include <argos3/core/simulator/argos_command_line_arg_parser.h>
12 using namespace argos;
25 int main(
int n_argc,
char** ppch_argv) {
32 cACLAP.
Parse(n_argc, ppch_argv);
57 catch(std::exception& ex) {
59 LOGERR << ex.what() << std::endl;
60 #ifdef ARGOS_THREADSAFE_LOG
int main(int n_argc, char **ppch_argv)
The standard main() function to run the ARGoS simulator.
The namespace containing all the ARGoS related code.
CARGoSLog LOGERR(std::cerr, SLogColor(ARGOS_LOG_ATTRIBUTE_BRIGHT, ARGOS_LOG_COLOR_RED))
void QueryPlugins(const std::string &str_query)
CARGoSLog LOG(std::cout, SLogColor(ARGOS_LOG_ATTRIBUTE_BRIGHT, ARGOS_LOG_COLOR_GREEN))
The command line argument parser used by the main ARGoS executable.
virtual void Parse(SInt32 n_argc, char **ppch_argv)
Parses the command line.
EAction GetAction()
Returns the action parsed by Parse().
const std::string & GetExperimentConfigFile()
Returns the experiment configuration file as parsed by Parse().
virtual void PrintVersion()
Prints the current ARGoS version and release.
virtual void PrintUsage(CARGoSLog &c_log)
Prints usage information to the wanted log.
const std::string & GetQuery()
Returns the query on the plugins as parsed by Parse().
void Destroy()
Undoes whatever was done by Init().
void SetExperimentFileName(const std::string &str_file_name)
Sets the name of the XML configuration file parsed by Load().
static CSimulator & GetInstance()
Returns the instance to the CSimulator class.
void Execute()
Executes the simulation loop.
void LoadExperiment()
Loads the XML configuration file.
static void LoadAllLibraries()
Loads all the dynamic libraries in the current ARGOS_PLUGIN_PATH.