Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
timestamp_tools::TriggerMatcherBase Class Referenceabstract

#include <trigger_matcher.h>

Inheritance diagram for timestamp_tools::TriggerMatcherBase:
Inheritance graph
[legend]

Public Member Functions

bool hasTimestamp ()
 
void setLateDataCountAllowed (unsigned int v)
 
void setTrigDelay (double delay)
 
void setTrigDelay (const ros::Duration &delay)
 
void triggerCallback (double stamp)
 
void triggerCallback (const std_msgs::HeaderConstPtr &msg)
 
void triggerCallback (const ros::Time &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::Timetrig_queue_
 

Detailed Description

Definition at line 49 of file trigger_matcher.h.

Constructor & Destructor Documentation

virtual timestamp_tools::TriggerMatcherBase::~TriggerMatcherBase ( )
inlinevirtual

Definition at line 158 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 177 of file trigger_matcher.h.

Member Function Documentation

virtual void timestamp_tools::TriggerMatcherBase::baseReset ( )
inlineprotectedvirtual

Definition at line 123 of file trigger_matcher.h.

ros::Time timestamp_tools::TriggerMatcherBase::getTimestampNoblockPrelocked ( const ros::Time data_time)
inlineprotected

Definition at line 55 of file trigger_matcher.h.

virtual void timestamp_tools::TriggerMatcherBase::gotTrigger ( )
protectedpure virtual
bool timestamp_tools::TriggerMatcherBase::hasTimestamp ( )
inline

Definition at line 153 of file trigger_matcher.h.

bool timestamp_tools::TriggerMatcherBase::nonCausalHeads ( const ros::Time data_stamp)
inlineprivate

Definition at line 142 of file trigger_matcher.h.

void timestamp_tools::TriggerMatcherBase::setLateDataCountAllowed ( unsigned int  v)
inline

Definition at line 162 of file trigger_matcher.h.

void timestamp_tools::TriggerMatcherBase::setTrigDelay ( double  delay)
inline

Definition at line 167 of file trigger_matcher.h.

void timestamp_tools::TriggerMatcherBase::setTrigDelay ( const ros::Duration delay)
inline

Definition at line 172 of file trigger_matcher.h.

void timestamp_tools::TriggerMatcherBase::triggerCallback ( double  stamp)
inline

Definition at line 188 of file trigger_matcher.h.

void timestamp_tools::TriggerMatcherBase::triggerCallback ( const std_msgs::HeaderConstPtr msg)
inline

Definition at line 193 of file trigger_matcher.h.

void timestamp_tools::TriggerMatcherBase::triggerCallback ( const ros::Time stamp)
inline

Definition at line 198 of file trigger_matcher.h.

Member Data Documentation

const ros::Time timestamp_tools::TriggerMatcherBase::DropData = ros::TIME_MIN
static

Definition at line 150 of file trigger_matcher.h.

ros::Time timestamp_tools::TriggerMatcherBase::last_data_stamp_
private

Definition at line 135 of file trigger_matcher.h.

unsigned int timestamp_tools::TriggerMatcherBase::late_data_count_
private

Definition at line 138 of file trigger_matcher.h.

unsigned int timestamp_tools::TriggerMatcherBase::late_data_count_allowed_
private

Definition at line 137 of file trigger_matcher.h.

unsigned int timestamp_tools::TriggerMatcherBase::max_trig_queue_length_
private

Definition at line 139 of file trigger_matcher.h.

boost::mutex timestamp_tools::TriggerMatcherBase::mutex_
protected

Definition at line 52 of file trigger_matcher.h.

const ros::Time timestamp_tools::TriggerMatcherBase::RetryLater = ros::TIME_MAX
static

Definition at line 151 of file trigger_matcher.h.

bool timestamp_tools::TriggerMatcherBase::synchronized_
private

Definition at line 140 of file trigger_matcher.h.

ros::Duration timestamp_tools::TriggerMatcherBase::trig_delay_
private

Definition at line 133 of file trigger_matcher.h.

std::queue<ros::Time> timestamp_tools::TriggerMatcherBase::trig_queue_
private

Definition at line 131 of file trigger_matcher.h.

bool timestamp_tools::TriggerMatcherBase::verbose_

Definition at line 148 of file trigger_matcher.h.


The documentation for this class was generated from the following file:


timestamp_tools
Author(s): Blaise Gassend
autogenerated on Tue Mar 23 2021 02:23:30