Classes | |
class | AbstractAlgorithmNode |
Abstract Class for Ctrl+C management. More... | |
class | IriBaseAlgorithm |
IRI ROS Algorithm Base Node Class. More... | |
Functions | |
template<class AlgImplTempl > | |
int | main (int argc, char **argv, std::string node_name) |
base main |
int algorithm_base::main | ( | int | argc, |
char ** | argv, | ||
std::string | node_name | ||
) |
base main
This main is common for all the algorithm nodes. The AlgImplTempl class refers to an specific implementation derived from a generic algorithm.
First, ros::init is called providing the node name. Ctrl+C control is activated for sercure and safe exit. Finally, an AlgImplTempl object is defined and launched to spin for endless loop execution.
argc | integer with number of input parameters |
argv | array with all input strings |
node_name | name of the node |
Definition at line 392 of file iri_base_algorithm.h.