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

#include <trajectory_collator.h>

Inheritance diagram for cartographer::sensor::TrajectoryCollator:
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
 
void FinishTrajectory (int trajectory_id) override
 
void Flush () override
 
common::optional< int > GetBlockingTrajectoryId () const override
 
TrajectoryCollatoroperator= (const TrajectoryCollator &)=delete
 
 TrajectoryCollator ()
 
 TrajectoryCollator (const TrajectoryCollator &)=delete
 
- Public Member Functions inherited from cartographer::sensor::CollatorInterface
 CollatorInterface ()
 
 CollatorInterface (const CollatorInterface &)=delete
 
CollatorInterfaceoperator= (const CollatorInterface &)=delete
 
virtual ~CollatorInterface ()
 

Private Attributes

std::unordered_map< int, OrderedMultiQueuetrajectory_to_queue_
 
std::unordered_map< int, std::vector< QueueKey > > trajectory_to_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 36 of file trajectory_collator.h.

Constructor & Destructor Documentation

◆ TrajectoryCollator() [1/2]

cartographer::sensor::TrajectoryCollator::TrajectoryCollator ( )
inline

Definition at line 38 of file trajectory_collator.h.

◆ TrajectoryCollator() [2/2]

cartographer::sensor::TrajectoryCollator::TrajectoryCollator ( const TrajectoryCollator )
delete

Member Function Documentation

◆ AddSensorData()

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

Implements cartographer::sensor::CollatorInterface.

Definition at line 43 of file trajectory_collator.cc.

◆ AddTrajectory()

void cartographer::sensor::TrajectoryCollator::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 trajectory_collator.cc.

◆ FinishTrajectory()

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

Implements cartographer::sensor::CollatorInterface.

Definition at line 37 of file trajectory_collator.cc.

◆ Flush()

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

Implements cartographer::sensor::CollatorInterface.

Definition at line 50 of file trajectory_collator.cc.

◆ GetBlockingTrajectoryId()

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

Implements cartographer::sensor::CollatorInterface.

Definition at line 56 of file trajectory_collator.cc.

◆ operator=()

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

Member Data Documentation

◆ trajectory_to_queue_

std::unordered_map<int, OrderedMultiQueue> cartographer::sensor::TrajectoryCollator::trajectory_to_queue_
private

Definition at line 56 of file trajectory_collator.h.

◆ trajectory_to_queue_keys_

std::unordered_map<int, std::vector<QueueKey> > cartographer::sensor::TrajectoryCollator::trajectory_to_queue_keys_
private

Definition at line 59 of file trajectory_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