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

#include <collator.h>

Inheritance diagram for cartographer::sensor::Collator:
Inheritance graph
[legend]

Public Member Functions

void AddSensorData (int trajectory_id, std::unique_ptr< Data > data) override
 
void AddTrajectory (int trajectory_id, const std::unordered_set< std::string > &expected_sensor_ids, const Callback &callback) override
 
 Collator ()
 
 Collator (const Collator &)=delete
 
void FinishTrajectory (int trajectory_id) override
 
void Flush () override
 
common::optional< int > GetBlockingTrajectoryId () const override
 
Collatoroperator= (const Collator &)=delete
 
- Public Member Functions inherited from cartographer::sensor::CollatorInterface
 CollatorInterface ()
 
 CollatorInterface (const CollatorInterface &)=delete
 
CollatorInterfaceoperator= (const CollatorInterface &)=delete
 
virtual ~CollatorInterface ()
 

Private Attributes

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

Additional Inherited Members

- Public Types inherited from cartographer::sensor::CollatorInterface
using Callback = std::function< void(const std::string &, std::unique_ptr< Data >)>
 

Detailed Description

Definition at line 33 of file collator.h.

Constructor & Destructor Documentation

◆ Collator() [1/2]

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

Definition at line 35 of file collator.h.

◆ Collator() [2/2]

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

Member Function Documentation

◆ AddSensorData()

void cartographer::sensor::Collator::AddSensorData ( int  trajectory_id,
std::unique_ptr< Data data 
)
overridevirtual

Implements cartographer::sensor::CollatorInterface.

Definition at line 42 of file collator.cc.

◆ AddTrajectory()

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

Implements cartographer::sensor::CollatorInterface.

Definition at line 22 of file collator.cc.

◆ FinishTrajectory()

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

Implements cartographer::sensor::CollatorInterface.

Definition at line 36 of file collator.cc.

◆ Flush()

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

Implements cartographer::sensor::CollatorInterface.

Definition at line 48 of file collator.cc.

◆ GetBlockingTrajectoryId()

common::optional< int > cartographer::sensor::Collator::GetBlockingTrajectoryId ( ) const
overridevirtual

Implements cartographer::sensor::CollatorInterface.

Definition at line 50 of file collator.cc.

◆ operator=()

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

Member Data Documentation

◆ queue_

OrderedMultiQueue cartographer::sensor::Collator::queue_
private

Definition at line 54 of file collator.h.

◆ queue_keys_

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

Definition at line 57 of file collator.h.


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


cartographer
Author(s): The Cartographer Authors
autogenerated on Mon Feb 28 2022 22:00:59