ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
Go to the documentation of this file.
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
static CSimulator & GetInstance()
Returns the instance to the CSimulator class.
virtual void Parse(SInt32 n_argc, char **ppch_argv)
Parses the command line.
CARGoSLog LOG(std::cout, SLogColor(ARGOS_LOG_ATTRIBUTE_BRIGHT, ARGOS_LOG_COLOR_GREEN))
The namespace containing all the ARGoS related code.
const std::string & GetExperimentConfigFile()
Returns the experiment configuration file as parsed by Parse().
void SetExperimentFileName(const std::string &str_file_name)
Sets the name of the XML configuration file parsed by Load().
CARGoSLog LOGERR(std::cerr, SLogColor(ARGOS_LOG_ATTRIBUTE_BRIGHT, ARGOS_LOG_COLOR_RED))
void LoadExperiment()
Loads the XML configuration file.
const std::string & GetQuery()
Returns the query on the plugins as parsed by Parse().
static void LoadAllLibraries()
Loads all the dynamic libraries in the current ARGOS_PLUGIN_PATH.
virtual void PrintUsage(CARGoSLog &c_log)
Prints usage information to the wanted log.
void QueryPlugins(const std::string &str_query)
int main(int n_argc, char **ppch_argv)
The standard main() function to run the ARGoS simulator.
The command line argument parser used by the main ARGoS executable.
void Execute()
Executes the simulation loop.
EAction GetAction()
Returns the action parsed by Parse().
void Destroy()
Undoes whatever was done by Init().
virtual void PrintVersion()
Prints the current ARGoS version and release.