Classes | Functions
algorithm_base Namespace Reference

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

Function Documentation

template<class AlgImplTempl >
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.

Parameters:
argcinteger with number of input parameters
argvarray with all input strings
node_namename of the node

Definition at line 392 of file iri_base_algorithm.h.



iri_base_algorithm
Author(s): Joan Perez, jnperez at iri.upc.edu
autogenerated on Fri Dec 6 2013 19:54:27