Public Member Functions | List of all members
cartographer::cloud::testing::MockMapBuilderContext Class Reference

#include <mock_map_builder_context.h>

Inheritance diagram for cartographer::cloud::testing::MockMapBuilderContext:
Inheritance graph
[legend]

Public Member Functions

void EnqueueSensorData (int trajectory_id, std::unique_ptr< sensor::Data > data) override
 
 MOCK_METHOD0 (map_builder, mapping::MapBuilderInterface &())
 
 MOCK_METHOD0 (sensor_data_queue, common::BlockingQueue< std::unique_ptr< MapBuilderContextInterface::Data >> &())
 
 MOCK_METHOD0 (GetLocalSlamResultCallbackForSubscriptions, mapping::TrajectoryBuilderInterface::LocalSlamResultCallback())
 
 MOCK_METHOD0 (local_trajectory_uploader, LocalTrajectoryUploaderInterface *())
 
 MOCK_METHOD1 (AddSensorDataToTrajectory, void(const MapBuilderContextInterface::Data &))
 
 MOCK_METHOD1 (UnsubscribeLocalSlamResults, void(const MapBuilderContextInterface::LocalSlamSubscriptionId &))
 
 MOCK_METHOD1 (SubscribeGlobalSlamOptimizations, int(GlobalSlamOptimizationCallback))
 
 MOCK_METHOD1 (UnsubscribeGlobalSlamOptimizations, void(int))
 
 MOCK_METHOD1 (NotifyFinishTrajectory, void(int))
 
 MOCK_METHOD2 (SubscribeLocalSlamResults, MapBuilderContextInterface::LocalSlamSubscriptionId(int, MapBuilderContextInterface::LocalSlamSubscriptionCallback))
 
 MOCK_METHOD2 (DoEnqueueSensorData, void(int, sensor::Data *))
 
 MOCK_METHOD3 (EnqueueLocalSlamResultData, void(int, const std::string &, const mapping::proto::LocalSlamResultData &))
 
- Public Member Functions inherited from cartographer::cloud::MapBuilderContextInterface
virtual void AddSensorDataToTrajectory (const Data &sensor_data)=0
 
virtual void EnqueueLocalSlamResultData (int trajectory_id, const std::string &sensor_id, const mapping::proto::LocalSlamResultData &local_slam_result_data)=0
 
virtual mapping::TrajectoryBuilderInterface::LocalSlamResultCallback GetLocalSlamResultCallbackForSubscriptions ()=0
 
virtual LocalTrajectoryUploaderInterfacelocal_trajectory_uploader ()=0
 
virtual mapping::MapBuilderInterfacemap_builder ()=0
 
 MapBuilderContextInterface ()=default
 
 MapBuilderContextInterface (const MapBuilderContextInterface &)=delete
 
virtual void NotifyFinishTrajectory (int trajectory_id)=0
 
MapBuilderContextInterfaceoperator= (const MapBuilderContextInterface &)=delete
 
virtual common::BlockingQueue< std::unique_ptr< Data > > & sensor_data_queue ()=0
 
virtual int SubscribeGlobalSlamOptimizations (GlobalSlamOptimizationCallback callback)=0
 
virtual LocalSlamSubscriptionId SubscribeLocalSlamResults (int trajectory_id, LocalSlamSubscriptionCallback callback)=0
 
virtual void UnsubscribeGlobalSlamOptimizations (int subscription_index)=0
 
virtual void UnsubscribeLocalSlamResults (const LocalSlamSubscriptionId &subscription_id)=0
 
 ~MapBuilderContextInterface ()=default
 

Additional Inherited Members

- Public Types inherited from cartographer::cloud::MapBuilderContextInterface
using GlobalSlamOptimizationCallback = std::function< bool(const std::map< int, mapping::SubmapId > &, const std::map< int, mapping::NodeId > &)>
 
using LocalSlamSubscriptionCallback = std::function< bool(std::unique_ptr< LocalSlamResult >)>
 

Detailed Description

Definition at line 30 of file mock_map_builder_context.h.

Member Function Documentation

◆ EnqueueSensorData()

void cartographer::cloud::testing::MockMapBuilderContext::EnqueueSensorData ( int  trajectory_id,
std::unique_ptr< sensor::Data data 
)
inlineoverridevirtual

◆ MOCK_METHOD0() [1/4]

cartographer::cloud::testing::MockMapBuilderContext::MOCK_METHOD0 ( map_builder  ,
mapping::MapBuilderInterface () 
)

◆ MOCK_METHOD0() [2/4]

cartographer::cloud::testing::MockMapBuilderContext::MOCK_METHOD0 ( sensor_data_queue  ,
common::BlockingQueue< std::unique_ptr< MapBuilderContextInterface::Data >> &  () 
)

◆ MOCK_METHOD0() [3/4]

cartographer::cloud::testing::MockMapBuilderContext::MOCK_METHOD0 ( GetLocalSlamResultCallbackForSubscriptions  ,
mapping::TrajectoryBuilderInterface::LocalSlamResultCallback()   
)

◆ MOCK_METHOD0() [4/4]

cartographer::cloud::testing::MockMapBuilderContext::MOCK_METHOD0 ( local_trajectory_uploader  ,
LocalTrajectoryUploaderInterface () 
)

◆ MOCK_METHOD1() [1/5]

cartographer::cloud::testing::MockMapBuilderContext::MOCK_METHOD1 ( AddSensorDataToTrajectory  ,
void(const MapBuilderContextInterface::Data &)   
)

◆ MOCK_METHOD1() [2/5]

cartographer::cloud::testing::MockMapBuilderContext::MOCK_METHOD1 ( UnsubscribeLocalSlamResults  ,
void(const MapBuilderContextInterface::LocalSlamSubscriptionId &)   
)

◆ MOCK_METHOD1() [3/5]

cartographer::cloud::testing::MockMapBuilderContext::MOCK_METHOD1 ( SubscribeGlobalSlamOptimizations  ,
int(GlobalSlamOptimizationCallback  
)

◆ MOCK_METHOD1() [4/5]

cartographer::cloud::testing::MockMapBuilderContext::MOCK_METHOD1 ( UnsubscribeGlobalSlamOptimizations  ,
void(int)   
)

◆ MOCK_METHOD1() [5/5]

cartographer::cloud::testing::MockMapBuilderContext::MOCK_METHOD1 ( NotifyFinishTrajectory  ,
void(int)   
)

◆ MOCK_METHOD2() [1/2]

cartographer::cloud::testing::MockMapBuilderContext::MOCK_METHOD2 ( SubscribeLocalSlamResults  ,
MapBuilderContextInterface::LocalSlamSubscriptionId(int, MapBuilderContextInterface::LocalSlamSubscriptionCallback  
)

◆ MOCK_METHOD2() [2/2]

cartographer::cloud::testing::MockMapBuilderContext::MOCK_METHOD2 ( DoEnqueueSensorData  ,
void(int, sensor::Data *)   
)

◆ MOCK_METHOD3()

cartographer::cloud::testing::MockMapBuilderContext::MOCK_METHOD3 ( EnqueueLocalSlamResultData  ,
void(int, const std::string &, const mapping::proto::LocalSlamResultData &)   
)

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


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