17 #ifndef CARTOGRAPHER_SENSOR_INTERNAL_ORDERED_MULTI_QUEUE_H_ 18 #define CARTOGRAPHER_SENSOR_INTERNAL_ORDERED_MULTI_QUEUE_H_ 39 return std::forward_as_tuple(trajectory_id, sensor_id) <
51 using Callback = std::function<void(std::unique_ptr<Data>)>;
62 void MarkQueueAsFinished(
const QueueKey& queue_key);
66 void Add(
const QueueKey& queue_key, std::unique_ptr<Data> data);
81 bool finished =
false;
85 void CannotMakeProgress(
const QueueKey& queue_key);
99 #endif // CARTOGRAPHER_SENSOR_INTERNAL_ORDERED_MULTI_QUEUE_H_ std::function< void(std::unique_ptr< Data >)> Callback
UniversalTimeScaleClock::time_point Time
std::map< QueueKey, Queue > queues_
common::BlockingQueue< std::unique_ptr< Data > > queue
bool operator<(const QueueKey &other) const
std::map< int, common::Time > common_start_time_per_trajectory_