Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
message_filters::UpdateFilter< M > Class Template Reference

Filters consecutive messages with the same timestamp. Only the first message passes, all consecutive are dropped. It is templated on the message type to be filtered. More...

#include <update_filter.h>

Inheritance diagram for message_filters::UpdateFilter< M >:
Inheritance graph
[legend]

Public Types

typedef ros::MessageEvent< M const > EventType
 
typedef boost::shared_ptr< M const > MConstPtr
 
- Public Types inherited from message_filters::SimpleFilter< M >
typedef boost::function< void(const MConstPtr &)> Callback
 
typedef boost::function< void(const EventType &)> EventCallback
 
typedef ros::MessageEvent< M const > EventType
 
typedef boost::shared_ptr< M const > MConstPtr
 

Public Member Functions

template<class F >
void connectInput (F &f)
 Connect to the output of another filter. More...
 
template<typename F >
 UpdateFilter (F &f)
 Construct the filter and connect to the output of another filter. More...
 
- Public Member Functions inherited from message_filters::SimpleFilter< M >
const std::string & getName ()
 
Connection registerCallback (const C &callback)
 
Connection registerCallback (void(T::*callback)(P), T *t)
 
Connection registerCallback (void(*callback)(P))
 
Connection registerCallback (const boost::function< void(P)> &callback)
 
void setName (const std::string &name)
 

Private Member Functions

void cb (const EventType &evt)
 

Private Attributes

Connection incoming_connection_
 
ros::Time last_message_time_
 

Additional Inherited Members

- Protected Member Functions inherited from message_filters::SimpleFilter< M >
void signalMessage (const MConstPtr &msg)
 
void signalMessage (const ros::MessageEvent< M const > &event)
 

Detailed Description

template<typename M>
class message_filters::UpdateFilter< M >

Filters consecutive messages with the same timestamp. Only the first message passes, all consecutive are dropped. It is templated on the message type to be filtered.

message_filters::Subscriber sub<MsgStamped>(nh, TOPIC_NAME, 1);
message_filters::UpdateFilter filter<MsgStamped>(&sub));
// Register all callback receiving filtered output
filter.registerCallback(&filteredCallback);

Definition at line 40 of file update_filter.h.

Member Typedef Documentation

◆ EventType

template<typename M>
typedef ros::MessageEvent<M const> message_filters::UpdateFilter< M >::EventType

Definition at line 44 of file update_filter.h.

◆ MConstPtr

template<typename M>
typedef boost::shared_ptr<M const> message_filters::UpdateFilter< M >::MConstPtr

Definition at line 43 of file update_filter.h.

Constructor & Destructor Documentation

◆ UpdateFilter()

template<typename M>
template<typename F >
message_filters::UpdateFilter< M >::UpdateFilter ( F &  f)
inline

Construct the filter and connect to the output of another filter.

Definition at line 50 of file update_filter.h.

Member Function Documentation

◆ cb()

template<typename M>
void message_filters::UpdateFilter< M >::cb ( const EventType evt)
inlineprivate

Definition at line 67 of file update_filter.h.

◆ connectInput()

template<typename M>
template<class F >
void message_filters::UpdateFilter< M >::connectInput ( F &  f)
inline

Connect to the output of another filter.

Definition at line 59 of file update_filter.h.

Member Data Documentation

◆ incoming_connection_

template<typename M>
Connection message_filters::UpdateFilter< M >::incoming_connection_
private

Definition at line 79 of file update_filter.h.

◆ last_message_time_

template<typename M>
ros::Time message_filters::UpdateFilter< M >::last_message_time_
private

Definition at line 81 of file update_filter.h.


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


prbt_hardware_support
Author(s):
autogenerated on Thu Jul 22 2021 02:10:34