#include <collator.h>
Public Member Functions | |
void | AddSensorData (int trajectory_id, std::unique_ptr< Data > data) override |
void | AddTrajectory (int trajectory_id, const absl::flat_hash_set< std::string > &expected_sensor_ids, const Callback &callback) override |
Collator () | |
Collator (const Collator &) | |
void | FinishTrajectory (int trajectory_id) override |
void | Flush () override |
absl::optional< int > | GetBlockingTrajectoryId () const override |
Collator & | operator= (const Collator &) |
Private Attributes | |
OrderedMultiQueue | queue_ |
absl::flat_hash_map< int, std::vector< QueueKey > > | queue_keys_ |
Definition at line 33 of file collator.h.
cartographer::sensor::Collator::Collator | ( | ) | [inline] |
Definition at line 35 of file collator.h.
cartographer::sensor::Collator::Collator | ( | const Collator & | ) |
void cartographer::sensor::Collator::AddSensorData | ( | int | trajectory_id, |
std::unique_ptr< Data > | data | ||
) | [override, virtual] |
Implements cartographer::sensor::CollatorInterface.
Definition at line 42 of file collator.cc.
void cartographer::sensor::Collator::AddTrajectory | ( | int | trajectory_id, |
const absl::flat_hash_set< std::string > & | expected_sensor_ids, | ||
const Callback & | callback | ||
) | [override, virtual] |
Implements cartographer::sensor::CollatorInterface.
Definition at line 22 of file collator.cc.
void cartographer::sensor::Collator::FinishTrajectory | ( | int | trajectory_id | ) | [override, virtual] |
Implements cartographer::sensor::CollatorInterface.
Definition at line 36 of file collator.cc.
void cartographer::sensor::Collator::Flush | ( | ) | [override, virtual] |
Implements cartographer::sensor::CollatorInterface.
Definition at line 48 of file collator.cc.
absl::optional< int > cartographer::sensor::Collator::GetBlockingTrajectoryId | ( | ) | const [override, virtual] |
Implements cartographer::sensor::CollatorInterface.
Definition at line 50 of file collator.cc.
Definition at line 55 of file collator.h.
absl::flat_hash_map<int, std::vector<QueueKey> > cartographer::sensor::Collator::queue_keys_ [private] |
Definition at line 58 of file collator.h.