#include <trigger_matcher.h>
Public Member Functions | |
bool | hasTimestamp () |
void | setLateDataCountAllowed (unsigned int v) |
void | setTrigDelay (const ros::Duration &delay) |
void | setTrigDelay (double delay) |
void | triggerCallback (const ros::Time &stamp) |
void | triggerCallback (const roslib::HeaderConstPtr &msg) |
void | triggerCallback (double stamp) |
TriggerMatcherBase (unsigned int late_data_count_allowed, unsigned int max_trig_queue_length) | |
virtual | ~TriggerMatcherBase () |
Public Attributes | |
bool | verbose_ |
Static Public Attributes | |
static const ros::Time | DropData = ros::TIME_MIN |
static const ros::Time | RetryLater = ros::TIME_MAX |
Protected Member Functions | |
virtual void | baseReset () |
ros::Time | getTimestampNoblockPrelocked (const ros::Time &data_time) |
virtual void | gotTrigger ()=0 |
Protected Attributes | |
boost::mutex | mutex_ |
Private Member Functions | |
bool | nonCausalHeads (const ros::Time &data_stamp) |
Private Attributes | |
ros::Time | last_data_stamp_ |
unsigned int | late_data_count_ |
unsigned int | late_data_count_allowed_ |
unsigned int | max_trig_queue_length_ |
bool | synchronized_ |
ros::Duration | trig_delay_ |
std::queue< ros::Time > | trig_queue_ |
Definition at line 46 of file trigger_matcher.h.
virtual timestamp_tools::TriggerMatcherBase::~TriggerMatcherBase | ( | ) | [inline, virtual] |
Definition at line 152 of file trigger_matcher.h.
timestamp_tools::TriggerMatcherBase::TriggerMatcherBase | ( | unsigned int | late_data_count_allowed, | |
unsigned int | max_trig_queue_length | |||
) | [inline] |
Definition at line 171 of file trigger_matcher.h.
virtual void timestamp_tools::TriggerMatcherBase::baseReset | ( | ) | [inline, protected, virtual] |
Definition at line 117 of file trigger_matcher.h.
ros::Time timestamp_tools::TriggerMatcherBase::getTimestampNoblockPrelocked | ( | const ros::Time & | data_time | ) | [inline, protected] |
Definition at line 49 of file trigger_matcher.h.
virtual void timestamp_tools::TriggerMatcherBase::gotTrigger | ( | ) | [protected, pure virtual] |
bool timestamp_tools::TriggerMatcherBase::hasTimestamp | ( | ) | [inline] |
Definition at line 147 of file trigger_matcher.h.
bool timestamp_tools::TriggerMatcherBase::nonCausalHeads | ( | const ros::Time & | data_stamp | ) | [inline, private] |
Definition at line 136 of file trigger_matcher.h.
void timestamp_tools::TriggerMatcherBase::setLateDataCountAllowed | ( | unsigned int | v | ) | [inline] |
Definition at line 156 of file trigger_matcher.h.
void timestamp_tools::TriggerMatcherBase::setTrigDelay | ( | const ros::Duration & | delay | ) | [inline] |
Definition at line 166 of file trigger_matcher.h.
void timestamp_tools::TriggerMatcherBase::setTrigDelay | ( | double | delay | ) | [inline] |
Definition at line 161 of file trigger_matcher.h.
void timestamp_tools::TriggerMatcherBase::triggerCallback | ( | const ros::Time & | stamp | ) | [inline] |
Definition at line 192 of file trigger_matcher.h.
void timestamp_tools::TriggerMatcherBase::triggerCallback | ( | const roslib::HeaderConstPtr & | msg | ) | [inline] |
Definition at line 187 of file trigger_matcher.h.
void timestamp_tools::TriggerMatcherBase::triggerCallback | ( | double | stamp | ) | [inline] |
Definition at line 182 of file trigger_matcher.h.
const ros::Time timestamp_tools::TriggerMatcherBase::DropData = ros::TIME_MIN [static] |
Definition at line 144 of file trigger_matcher.h.
ros::Time timestamp_tools::TriggerMatcherBase::last_data_stamp_ [private] |
Definition at line 129 of file trigger_matcher.h.
unsigned int timestamp_tools::TriggerMatcherBase::late_data_count_ [private] |
Definition at line 132 of file trigger_matcher.h.
unsigned int timestamp_tools::TriggerMatcherBase::late_data_count_allowed_ [private] |
Definition at line 131 of file trigger_matcher.h.
unsigned int timestamp_tools::TriggerMatcherBase::max_trig_queue_length_ [private] |
Definition at line 133 of file trigger_matcher.h.
boost::mutex timestamp_tools::TriggerMatcherBase::mutex_ [protected] |
Definition at line 46 of file trigger_matcher.h.
const ros::Time timestamp_tools::TriggerMatcherBase::RetryLater = ros::TIME_MAX [static] |
Definition at line 145 of file trigger_matcher.h.
bool timestamp_tools::TriggerMatcherBase::synchronized_ [private] |
Definition at line 134 of file trigger_matcher.h.
ros::Duration timestamp_tools::TriggerMatcherBase::trig_delay_ [private] |
Definition at line 127 of file trigger_matcher.h.
std::queue<ros::Time> timestamp_tools::TriggerMatcherBase::trig_queue_ [private] |
Definition at line 125 of file trigger_matcher.h.
Definition at line 142 of file trigger_matcher.h.