17 #ifndef CARTOGRAPHER_SENSOR_COLLATOR_INTERFACE_H_ 18 #define CARTOGRAPHER_SENSOR_COLLATOR_INTERFACE_H_ 22 #include <unordered_set> 34 std::function<void(const std::string&, std::unique_ptr<Data>)>;
45 const std::unordered_set<std::string>& expected_sensor_ids,
54 virtual void AddSensorData(
int trajectory_id, std::unique_ptr<Data> data) = 0;
58 virtual void Flush() = 0;
70 #endif // CARTOGRAPHER_SENSOR_COLLATOR_INTERFACE_H_ std::function< void(const std::string &, std::unique_ptr< Data >)> Callback
virtual void AddSensorData(int trajectory_id, std::unique_ptr< Data > data)=0
virtual common::optional< int > GetBlockingTrajectoryId() const =0
virtual void AddTrajectory(int trajectory_id, const std::unordered_set< std::string > &expected_sensor_ids, const Callback &callback)=0
virtual ~CollatorInterface()
virtual void FinishTrajectory(int trajectory_id)=0
CollatorInterface & operator=(const CollatorInterface &)=delete