Public Types | Public Member Functions | Private Attributes | List of all members
cartographer::sensor::Collator Class Reference

#include <collator.h>

Public Types

using Callback = std::function< void(const string &, std::unique_ptr< Data >)>

Public Member Functions

void AddSensorData (int trajectory_id, const string &sensor_id, std::unique_ptr< Data > data)
void AddTrajectory (int trajectory_id, const std::unordered_set< string > &expected_sensor_ids, Callback callback)
 Collator ()
 Collator (const Collator &)=delete
void FinishTrajectory (int trajectory_id)
void Flush ()
int GetBlockingTrajectoryId () const
Collatoroperator= (const Collator &)=delete

Private Attributes

OrderedMultiQueue queue_
std::unordered_map< int, std::vector< QueueKey > > queue_keys_

Detailed Description

Definition at line 32 of file collator.h.

Member Typedef Documentation

using cartographer::sensor::Collator::Callback = std::function<void(const string&, std::unique_ptr<Data>)>

Definition at line 34 of file collator.h.

Constructor & Destructor Documentation

cartographer::sensor::Collator::Collator ( )

Definition at line 36 of file collator.h.

cartographer::sensor::Collator::Collator ( const Collator )

Member Function Documentation

void cartographer::sensor::Collator::AddSensorData ( int  trajectory_id,
const string &  sensor_id,
std::unique_ptr< Data data 

Definition at line 42 of file

void cartographer::sensor::Collator::AddTrajectory ( int  trajectory_id,
const std::unordered_set< string > &  expected_sensor_ids,
Callback  callback 

Definition at line 22 of file

void cartographer::sensor::Collator::FinishTrajectory ( int  trajectory_id)

Definition at line 36 of file

void cartographer::sensor::Collator::Flush ( )

Definition at line 47 of file

int cartographer::sensor::Collator::GetBlockingTrajectoryId ( ) const

Definition at line 49 of file

Collator& cartographer::sensor::Collator::operator= ( const Collator )

Member Data Documentation

OrderedMultiQueue cartographer::sensor::Collator::queue_

Definition at line 67 of file collator.h.

std::unordered_map<int, std::vector<QueueKey> > cartographer::sensor::Collator::queue_keys_

Definition at line 70 of file collator.h.

The documentation for this class was generated from the following files:

autogenerated on Mon Jun 10 2019 12:51:40