Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
ParameterServer Class Reference

Getting values from parameter server. This class is used for getting the parameters from the parameter server. More...

#include <parameter_server.h>

List of all members.

Public Member Functions

template<typename T >
get (const std::string param)

Static Public Member Functions

static ParameterServerinstance ()

Private Member Functions

void defaultConfig ()
template<typename T >
getFromParameterServer (const std::string param, T def)
void getValues ()
 ParameterServer ()

Private Attributes

std::map< std::string, boost::any > config
ros::NodeHandle handle
std::string pre

Static Private Attributes

static ParameterServer_instance = NULL

Detailed Description

Getting values from parameter server. This class is used for getting the parameters from the parameter server.

Definition at line 20 of file parameter_server.h.


Constructor & Destructor Documentation

Default constructor private, because of singleton

Definition at line 11 of file parameter_server.cpp.


Member Function Documentation

Loads the default configuration

Definition at line 31 of file parameter_server.cpp.

template<typename T >
T ParameterServer::get ( const std::string  param) [inline]

The method returns a value from the local cache. You can use bool, int, double and std::string for T

Parameters:
paramthe name of the parameter
Returns:
the parameter value

Definition at line 35 of file parameter_server.h.

template<typename T >
T ParameterServer::getFromParameterServer ( const std::string  param,
def 
) [inline, private]

Returns a value from the parameter server Will only be used by getValue()

Parameters:
paramname of the parameter
defdefault value (get through defaultConfig())
Returns:
the parameter value

Definition at line 76 of file parameter_server.h.

Receives all values from the parameter server and store them in the map 'config'. Will be called in the constructor

Definition at line 58 of file parameter_server.cpp.

Returns the singleton instance

Definition at line 20 of file parameter_server.cpp.


Member Data Documentation

Definition at line 44 of file parameter_server.h.

Definition at line 42 of file parameter_server.h.

Definition at line 46 of file parameter_server.h.

Definition at line 45 of file parameter_server.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


rgbd_registration
Author(s): Ross Kidson
autogenerated on Thu May 23 2013 15:36:57