4 #ifndef ROSMON_MONITOR_MONITOR_H 5 #define ROSMON_MONITOR_MONITOR_H 7 #include "../fd_watcher.h" 8 #include "../launch/launch_config.h" 9 #include "../log_event.h" 14 #include <boost/signals2.hpp> 38 inline bool ok()
const 41 const std::vector<NodeMonitor::Ptr>&
nodes()
const 43 std::vector<NodeMonitor::Ptr>&
nodes()
57 template<
typename... Args>
58 void log(
const char* fmt, Args&& ... args);
60 template<
typename... Args>
ros::WallTimer m_statTimer
const std::vector< NodeMonitor::Ptr > & nodes() const
boost::signals2::signal< void(LogEvent)> logMessageSignal
std::map< int, ProcessInfo > m_processInfos
process_info::ProcessStat stat
std::vector< NodeMonitor::Ptr > & nodes()
void log(const char *fmt, Args &&...args)
std::vector< NodeMonitor::Ptr > m_nodes
Monitor(launch::LaunchConfig::ConstPtr config, FDWatcher::Ptr watcher)
void logTyped(LogEvent::Type type, const char *fmt, Args &&...args)
FDWatcher::Ptr m_fdWatcher
std::shared_ptr< const LaunchConfig > ConstPtr
launch::LaunchConfig::ConstPtr config() const
void handleRequiredNodeExit(const std::string &name)
void updateStats(const ros::WallTimerEvent &event)
launch::LaunchConfig::ConstPtr m_config