main.cpp File Reference
#include <argos3/core/simulator/simulator.h>
#include <argos3/core/utility/plugins/dynamic_loading.h>
#include <argos3/core/simulator/query_plugins.h>
#include <argos3/core/simulator/argos_command_line_arg_parser.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int n_argc, char **ppch_argv)
 The standard main() function to run the ARGoS simulator. More...
 

Function Documentation

◆ main()

int main ( int  n_argc,
char **  ppch_argv 
)

The standard main() function to run the ARGoS simulator.

This main() function provides the basic logic to run the ARGoS simulator: parses the command line, loads the experiment, runs the simulation and disposes all the data.

Parameters
n_argcthe number of command line arguments given at the shell.
ppch_argvthe actual command line arguments.
Returns
0 if everything OK; 1 in case of errors.

Definition at line 25 of file main.cpp.