Template Class ExactTime
Defined in File exact_time.hpp
Inheritance Relationships
Base Type
public fkie_message_filters::combiner_policies::PolicyBase< IOs... >(Template Class PolicyBase)
Class Documentation
-
template<typename ...IOs>
class ExactTime : public fkie_message_filters::combiner_policies::PolicyBase<IOs...> Exact time policy.
This is a policy for the Combiner class. It will associate data from the connected sources when their ROS header timestamp match exactly. If an input source is not unary, only the first argument of each input will be examined to determine the timestamp.
The policy will discard unmatched data which exceeds configurable age limit or overflows the maximum queue size. The resulting timestamps will be strictly increasing if at least one of the inputs receives messages in correct temporal order. Whenever matched data is emitted, all queued inputs with older timestamps will be discarded.
The filter will not output any data at all if the time lag between two inputs is larger than the maximum permissible age, or if the time lag requires more messages to be buffered than the maximum queue size permits. By default, the filter will buffer arbitrary many messages for at most one second.
Public Types
-
using EmitterCB = std::function<void(OutgoingTuple&)>
Callback for assembled outputs.
Public Functions
-
ExactTime()
Constructor.
Does not throw any exceptions.
Protected Types
Protected Functions
-
template<std::size_t N>
void add(std::unique_lock<std::mutex>&, std::tuple_element_t<N, IncomingTuples>&&) Input function.
This function will be called by the Combiner class for incoming data.
-
void emit(OutgoingTuple &out)
Emit data.
This returns combined data back to the Combiner class.
Friends
- friend class fkie_message_filters::Combiner
-
using EmitterCB = std::function<void(OutgoingTuple&)>