Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef ROSCPP_ROSOUT_APPENDER_H
00036 #define ROSCPP_ROSOUT_APPENDER_H
00037
00038 #include <ros/message_forward.h>
00039 #include "common.h"
00040
00041 #include <boost/shared_ptr.hpp>
00042 #include <boost/weak_ptr.hpp>
00043
00044 #include <boost/thread.hpp>
00045
00046 namespace rosgraph_msgs
00047 {
00048 ROS_DECLARE_MESSAGE(Log);
00049 }
00050
00051 namespace ros
00052 {
00053
00054 class Publication;
00055 typedef boost::shared_ptr<Publication> PublicationPtr;
00056 typedef boost::weak_ptr<Publication> PublicationWPtr;
00057
00058 class ROSCPP_DECL ROSOutAppender : public ros::console::LogAppender
00059 {
00060 public:
00061 ROSOutAppender();
00062 ~ROSOutAppender();
00063
00064 const std::string& getLastError() const;
00065
00066 virtual void log(::ros::console::Level level, const char* str, const char* file, const char* function, int line);
00067
00068 protected:
00069 void logThread();
00070
00071 std::string last_error_;
00072
00073 typedef std::vector<rosgraph_msgs::LogPtr> V_Log;
00074 V_Log log_queue_;
00075 boost::mutex queue_mutex_;
00076 boost::condition_variable queue_condition_;
00077 bool shutting_down_;
00078
00079 boost::thread publish_thread_;
00080 };
00081
00082 }
00083
00084 #endif
roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim
autogenerated on Thu Jun 6 2019 21:10:05