17 #ifndef CARTOGRAPHER_SENSOR_INTERNAL_TRAJECTORY_COLLATOR_H_ 18 #define CARTOGRAPHER_SENSOR_INTERNAL_TRAJECTORY_COLLATOR_H_ 21 #include <unordered_map> 44 const std::unordered_set<std::string>& expected_sensor_ids,
49 void AddSensorData(
int trajectory_id, std::unique_ptr<Data> data)
override;
51 void Flush()
override;
65 #endif // CARTOGRAPHER_SENSOR_INTERNAL_TRAJECTORY_COLLATOR_H_ std::function< void(const std::string &, std::unique_ptr< Data >)> Callback
std::unordered_map< int, OrderedMultiQueue > trajectory_to_queue_
TrajectoryCollator & operator=(const TrajectoryCollator &)=delete
void AddTrajectory(int trajectory_id, const std::unordered_set< std::string > &expected_sensor_ids, const Callback &callback) override
std::unordered_map< int, std::vector< QueueKey > > trajectory_to_queue_keys_
common::optional< int > GetBlockingTrajectoryId() const override
void AddSensorData(int trajectory_id, std::unique_ptr< Data > data) override
void FinishTrajectory(int trajectory_id) override