23 const int trajectory_id,
24 const std::unordered_set<std::string>& expected_sensor_ids,
27 for (
const auto& sensor_id : expected_sensor_ids) {
28 const auto queue_key =
QueueKey{trajectory_id, sensor_id};
30 queue_key, [callback, sensor_id](std::unique_ptr<Data> data) {
31 callback(sensor_id, std::move(data));
44 std::unique_ptr<Data> data) {
45 QueueKey queue_key{trajectory_id, data->GetSensorId()};
47 .Add(std::move(queue_key), std::move(data));
std::function< void(const std::string &, std::unique_ptr< Data >)> Callback
std::unordered_map< int, OrderedMultiQueue > trajectory_to_queue_
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