21 #include <mrpt/version.h> 22 #include <log4cxx/logger.h> 24 #if MRPT_VERSION >= 0x199 25 #include <mrpt/system/COutputLogger.h> 26 #include <mrpt/math/TPose3D.h> 41 using namespace log4cxx;
44 VerbosityLevel mrpt_lvl;
50 else if (lvl == Level::getWarn())
54 else if (lvl == Level::getInfo())
58 else if (lvl == Level::getDebug())
79 const std::string& msg,
const VerbosityLevel
level,
83 std::string tmsg = msg;
85 tmsg.compare(tmsg.length() - 1, tmsg.length(),
"\n") == 0)
87 tmsg.erase(tmsg.end() - 1);
90 if (level == LVL_DEBUG)
94 else if (level == LVL_INFO)
98 else if (level == LVL_WARN)
102 else if (level == LVL_ERROR)
108 const std::string& msg,
const VerbosityLevel
level,
117 #if MRPT_VERSION >= 0x199
#define THROW_EXCEPTION(msg)
static XMLCSTR getError(XMLError error)
File includes methods for converting CNetworkOfPoses*DInf <=> NetworkOfPoses message types...
mrpt::math::TPose3D p2t(const mrpt::poses::CPose3D &p)
VerbosityLevel rosLoggerLvlToMRPTLoggerLvl(log4cxx::LevelPtr lvl)
function that converts ROS verbosity level log4cxx::Level to MRPT equivalent MRPT's VerbosityLevel ...
void mrptToROSLoggerCallback(const std::string &msg, const VerbosityLevel level, const std::string &loggerName, const mrpt::system::TTimeStamp timestamp)
callback that is called by MRPT mrpt::utils::COuputLogger to redirect log messages to ROS logger...
void mrptToROSLoggerCallback_mrpt_15(const std::string &msg, const VerbosityLevel level, const std::string &loggerName, const mrpt::system::TTimeStamp timestamp, void *userParam)