Go to the documentation of this file.00001 #include <nodelet/nodelet.h>
00002 #include <ros/ros.h>
00003
00004 #include "jsk_topic_tools/log_utils.h"
00005
00006 namespace jsk_topic_tools
00007 {
00008
00009 namespace test
00010 {
00011
00012 class LogUtils : public nodelet::Nodelet
00013 {
00014 private:
00015 virtual void onInit()
00016 {
00017 JSK_NODELET_DEBUG("DEBUG output");
00018 JSK_NODELET_DEBUG_STREAM("DEBUG" << " output");
00019 JSK_NODELET_DEBUG_THROTTLE(10.0, "DEBUG output");
00020 JSK_NODELET_DEBUG_STREAM_THROTTLE(10.0, "DEBUG" << " output");
00021
00022 JSK_NODELET_INFO("INFO output");
00023 JSK_NODELET_INFO_STREAM("INFO" << " output");
00024 JSK_NODELET_INFO_THROTTLE(10.0, "INFO output");
00025 JSK_NODELET_INFO_STREAM_THROTTLE(10.0, "INFO" << " output");
00026
00027 JSK_NODELET_WARN("WARN output");
00028 JSK_NODELET_WARN_STREAM("WARN" << " output");
00029 JSK_NODELET_WARN_THROTTLE(10.0, "WARN output");
00030 JSK_NODELET_WARN_STREAM_THROTTLE(10.0, "WARN" << " output");
00031
00032 JSK_NODELET_ERROR("ERROR output");
00033 JSK_NODELET_ERROR_STREAM("ERROR" << " output");
00034 JSK_NODELET_ERROR_THROTTLE(10.0, "ERROR output");
00035 JSK_NODELET_ERROR_STREAM_THROTTLE(10.0, "ERROR" << " output");
00036
00037 JSK_NODELET_FATAL("FATAL output");
00038 JSK_NODELET_FATAL_STREAM("FATAL" << " output");
00039 JSK_NODELET_FATAL_THROTTLE(10.0, "FATAL output");
00040 JSK_NODELET_FATAL_STREAM_THROTTLE(10.0, "FATAL" << " output");
00041 }
00042 };
00043
00044 }
00045
00046 }
00047
00048 #include <pluginlib/class_list_macros.h>
00049 PLUGINLIB_EXPORT_CLASS(jsk_topic_tools::test::LogUtils, nodelet::Nodelet)