SignalLogger
A library for signal logging.
signal_logger.hpp File Reference

Providing add function depending on current logger type. More...

Include dependency graph for signal_logger.hpp:

Namespaces

 signal_logger
 

Enumerations

enum  signal_logger::LoggerType : int { signal_logger::LoggerType::TypeUnknown = -1, signal_logger::LoggerType::TypeNone = 0, signal_logger::LoggerType::TypeStd = 1, signal_logger::LoggerType::TypeRos = 2 }
 Get the logger type at runtime. More...
 

Functions

LoggerType signal_logger::getLoggerType ()
 
void signal_logger::setSignalLoggerNone ()
 
void signal_logger::setSignalLoggerStd ()
 
void signal_logger::setSignalLoggerRos (ros::NodeHandle *nh)
 
template<typename ValueType_ >
void signal_logger::add (const ValueType_ &var, const std::string &name, const std::string &group=LOG_ELEMENT_DEFAULT_GROUP_NAME, const std::string &unit=LOG_ELEMENT_DEFAULT_UNIT, const std::size_t divider=LOG_ELEMENT_DEFAULT_DIVIDER, const LogElementAction action=LOG_ELEMENT_DEFAULT_ACTION, const std::size_t bufferSize=LOG_ELEMENT_DEFAULT_BUFFER_SIZE, const BufferType bufferType=LOG_ELEMENT_DEFAULT_BUFFER_TYPE)
 
template<typename ValueType_ >
std::enable_if< std::is_base_of< Eigen::MatrixBase< ValueType_ >, ValueType_ >::value >::type signal_logger::add (const ValueType_ &var, Eigen::Ref< MatrixXstring > names, const std::string &group=LOG_ELEMENT_DEFAULT_GROUP_NAME, const std::string &unit=LOG_ELEMENT_DEFAULT_UNIT, const std::size_t divider=LOG_ELEMENT_DEFAULT_DIVIDER, const LogElementAction action=LOG_ELEMENT_DEFAULT_ACTION, const std::size_t bufferSize=LOG_ELEMENT_DEFAULT_BUFFER_SIZE, const BufferType bufferType=LOG_ELEMENT_DEFAULT_BUFFER_TYPE)
 

Variables

std::shared_ptr< SignalLoggerBase > signal_logger::logger
 Reference to the logger. More...
 

Detailed Description

Providing add function depending on current logger type.

Author
Christian Gehring, C. Dario Bellicoso, Gabriel Hottiger
Date
June 23, 2013