17 #ifndef CARTOGRAPHER_SENSOR_COLLATOR_H_ 18 #define CARTOGRAPHER_SENSOR_COLLATOR_H_ 22 #include <unordered_map> 23 #include <unordered_set> 34 using Callback = std::function<void(const string&, std::unique_ptr<Data>)>;
44 const std::unordered_set<string>& expected_sensor_ids,
53 void AddSensorData(
int trajectory_id,
const string& sensor_id,
54 std::unique_ptr<Data> data);
76 #endif // CARTOGRAPHER_SENSOR_COLLATOR_H_
std::function< void(const string &, std::unique_ptr< Data >)> Callback
std::unordered_map< int, std::vector< QueueKey > > queue_keys_
Collator & operator=(const Collator &)=delete
void AddTrajectory(int trajectory_id, const std::unordered_set< string > &expected_sensor_ids, Callback callback)
void AddSensorData(int trajectory_id, const string &sensor_id, std::unique_ptr< Data > data)
void FinishTrajectory(int trajectory_id)
int GetBlockingTrajectoryId() const