#include <trajectory_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 |
void | FinishTrajectory (int trajectory_id) override |
void | Flush () override |
absl::optional< int > | GetBlockingTrajectoryId () const override |
TrajectoryCollator & | operator= (const TrajectoryCollator &) |
TrajectoryCollator () | |
TrajectoryCollator (const TrajectoryCollator &) | |
Static Public Member Functions | |
static void | RegisterMetrics (metrics::FamilyFactory *family_factory) |
Private Member Functions | |
metrics::Counter * | GetOrCreateSensorMetric (const std::string &sensor_id, int trajectory_id) |
Private Attributes | |
absl::flat_hash_map < std::string, metrics::Counter * > | metrics_map_ |
absl::flat_hash_map< int, OrderedMultiQueue > | trajectory_to_queue_ |
absl::flat_hash_map< int, std::vector< QueueKey > > | trajectory_to_queue_keys_ |
Static Private Attributes | |
static cartographer::metrics::Family < metrics::Counter > * | collator_metrics_family_ |
Definition at line 38 of file trajectory_collator.h.
Definition at line 40 of file trajectory_collator.h.
void cartographer::sensor::TrajectoryCollator::AddSensorData | ( | int | trajectory_id, |
std::unique_ptr< Data > | data | ||
) | [override, virtual] |
Implements cartographer::sensor::CollatorInterface.
Definition at line 49 of file trajectory_collator.cc.
void cartographer::sensor::TrajectoryCollator::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 28 of file trajectory_collator.cc.
void cartographer::sensor::TrajectoryCollator::FinishTrajectory | ( | int | trajectory_id | ) | [override, virtual] |
Implements cartographer::sensor::CollatorInterface.
Definition at line 43 of file trajectory_collator.cc.
void cartographer::sensor::TrajectoryCollator::Flush | ( | ) | [override, virtual] |
Implements cartographer::sensor::CollatorInterface.
Definition at line 58 of file trajectory_collator.cc.
absl::optional< int > cartographer::sensor::TrajectoryCollator::GetBlockingTrajectoryId | ( | ) | const [override, virtual] |
Implements cartographer::sensor::CollatorInterface.
Definition at line 64 of file trajectory_collator.cc.
metrics::Counter * cartographer::sensor::TrajectoryCollator::GetOrCreateSensorMetric | ( | const std::string & | sensor_id, |
int | trajectory_id | ||
) | [private] |
Definition at line 74 of file trajectory_collator.cc.
TrajectoryCollator& cartographer::sensor::TrajectoryCollator::operator= | ( | const TrajectoryCollator & | ) |
void cartographer::sensor::TrajectoryCollator::RegisterMetrics | ( | metrics::FamilyFactory * | family_factory | ) | [static] |
Definition at line 68 of file trajectory_collator.cc.
metrics::Family< metrics::Counter > * cartographer::sensor::TrajectoryCollator::collator_metrics_family_ [static, private] |
Definition at line 65 of file trajectory_collator.h.
absl::flat_hash_map<std::string, metrics::Counter*> cartographer::sensor::TrajectoryCollator::metrics_map_ [private] |
Definition at line 68 of file trajectory_collator.h.
absl::flat_hash_map<int, OrderedMultiQueue> cartographer::sensor::TrajectoryCollator::trajectory_to_queue_ [private] |
Definition at line 70 of file trajectory_collator.h.
absl::flat_hash_map<int, std::vector<QueueKey> > cartographer::sensor::TrajectoryCollator::trajectory_to_queue_keys_ [private] |
Definition at line 73 of file trajectory_collator.h.