Go to the documentation of this file. 1 #ifndef INCLUDE_RTABMAP_SYNC_SYNCDIAGNOSTIC_H_
2 #define INCLUDE_RTABMAP_SYNC_SYNCDIAGNOSTIC_H_
28 const std::string & topic,
29 const std::string & topicsNotReceivedWarningMsg,
30 std::vector<diagnostic_updater::DiagnosticTask*> otherTasks = std::vector<diagnostic_updater::DiagnosticTask*>())
34 std::list<std::string> strList =
uSplit(topic,
'/');
35 for(
int i=0;
i<2 && strList.size()>1; ++
i)
43 for(
size_t i=0;
i<otherTasks.size(); ++
i)
58 window_.push_back(singlePeriod);
77 else if(targetFrequency>0)
void addTask(DiagnosticTask *t)
std::string topicsNotReceivedWarningMsg_
#define ROS_WARN_THROTTLE(period,...)
std::string uJoin(const std::list< std::string > &strings, const std::string &separator="")
void diagnosticTimerCallback(const ros::TimerEvent &event)
std::deque< double > window_
SyncDiagnostic(ros::NodeHandle h=ros::NodeHandle(), ros::NodeHandle ph=ros::NodeHandle("~"), std::string nodeName=ros::this_node::getName(), double tolerance=0.1, int windowSize=5)
void init(const std::string &topic, const std::string &topicsNotReceivedWarningMsg, std::vector< diagnostic_updater::DiagnosticTask * > otherTasks=std::vector< diagnostic_updater::DiagnosticTask * >())
void tick(const ros::Time t)
#define UASSERT(condition)
ros::Timer diagnosticTimer_
diagnostic_updater::TimeStampStatus timeStampStatus_
void setHardwareID(const std::string &hwid)
void tick(const ros::Time &stamp, double targetFrequency=0)
const ROSCPP_DECL std::string & getName()
diagnostic_updater::FrequencyStatus frequencyStatus_
std::list< std::string > uSplit(const std::string &str, char separator=' ')
double lastCallbackCalledStamp_
diagnostic_updater::CompositeDiagnosticTask compositeTask_
void add(const std::string &name, TaskFunction f)
diagnostic_updater::Updater diagnosticUpdater_
rtabmap_sync
Author(s): Mathieu Labbe
autogenerated on Mon Apr 28 2025 02:39:12