test_log_utils_nodelet.cpp
Go to the documentation of this file.
1 #include <nodelet/nodelet.h>
2 #include <ros/ros.h>
3 
5 
6 namespace jsk_topic_tools
7 {
8 
9 namespace test
10 {
11 
12 class LogUtils : public nodelet::Nodelet
13 {
14 private:
15  virtual void onInit()
16  {
17  JSK_NODELET_DEBUG("DEBUG output");
18  JSK_NODELET_DEBUG_STREAM("DEBUG" << " output");
19  JSK_NODELET_DEBUG_THROTTLE(10.0, "DEBUG output");
20  JSK_NODELET_DEBUG_STREAM_THROTTLE(10.0, "DEBUG" << " output");
21 
22  JSK_NODELET_INFO("INFO output");
23  JSK_NODELET_INFO_STREAM("INFO" << " output");
24  JSK_NODELET_INFO_THROTTLE(10.0, "INFO output");
25  JSK_NODELET_INFO_STREAM_THROTTLE(10.0, "INFO" << " output");
26 
27  JSK_NODELET_WARN("WARN output");
28  JSK_NODELET_WARN_STREAM("WARN" << " output");
29  JSK_NODELET_WARN_THROTTLE(10.0, "WARN output");
30  JSK_NODELET_WARN_STREAM_THROTTLE(10.0, "WARN" << " output");
31 
32  JSK_NODELET_ERROR("ERROR output");
33  JSK_NODELET_ERROR_STREAM("ERROR" << " output");
34  JSK_NODELET_ERROR_THROTTLE(10.0, "ERROR output");
35  JSK_NODELET_ERROR_STREAM_THROTTLE(10.0, "ERROR" << " output");
36 
37  JSK_NODELET_FATAL("FATAL output");
38  JSK_NODELET_FATAL_STREAM("FATAL" << " output");
39  JSK_NODELET_FATAL_THROTTLE(10.0, "FATAL output");
40  JSK_NODELET_FATAL_STREAM_THROTTLE(10.0, "FATAL" << " output");
41  }
42 };
43 
44 } // namespace test
45 
46 } // namespace jsk_topic_tools
47 
#define JSK_NODELET_FATAL_STREAM(...)
Definition: log_utils.h:99
#define JSK_NODELET_ERROR_STREAM(...)
Definition: log_utils.h:96
#define JSK_NODELET_INFO_STREAM(...)
Definition: log_utils.h:90
#define JSK_NODELET_WARN_THROTTLE(rate, str,...)
Definition: log_utils.h:109
#define JSK_NODELET_INFO(str,...)
Definition: log_utils.h:74
#define JSK_NODELET_DEBUG_STREAM_THROTTLE(rate,...)
Definition: log_utils.h:119
#define JSK_NODELET_INFO_STREAM_THROTTLE(rate,...)
Definition: log_utils.h:122
PLUGINLIB_EXPORT_CLASS(jsk_topic_tools::Snapshot, nodelet::Nodelet)
#define JSK_NODELET_WARN_STREAM_THROTTLE(rate,...)
Definition: log_utils.h:125
#define JSK_NODELET_DEBUG_STREAM(...)
Definition: log_utils.h:87
#define JSK_NODELET_ERROR_STREAM_THROTTLE(rate,...)
Definition: log_utils.h:128
#define JSK_NODELET_INFO_THROTTLE(rate, str,...)
Definition: log_utils.h:106
#define JSK_NODELET_DEBUG_THROTTLE(rate, str,...)
Definition: log_utils.h:103
#define JSK_NODELET_WARN_STREAM(...)
Definition: log_utils.h:93
#define JSK_NODELET_ERROR_THROTTLE(rate, str,...)
Definition: log_utils.h:112
#define JSK_NODELET_FATAL(str,...)
Definition: log_utils.h:83
#define JSK_NODELET_DEBUG(str,...)
Definition: log_utils.h:71
#define JSK_NODELET_FATAL_THROTTLE(rate, str,...)
Definition: log_utils.h:115
#define JSK_NODELET_FATAL_STREAM_THROTTLE(rate,...)
Definition: log_utils.h:131
#define JSK_NODELET_WARN(str,...)
Definition: log_utils.h:77
#define JSK_NODELET_ERROR(str,...)
Definition: log_utils.h:80


jsk_topic_tools
Author(s): Kei Okada , Yusuke Furuta
autogenerated on Tue Feb 6 2018 03:45:19