mock_map_builder_context.h
Go to the documentation of this file.
1 /*
2  * Copyright 2018 The Cartographer Authors
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef CARTOGRAPHER_CLOUD_INTERNAL_TESTING_MOCK_MAP_BUILDER_CONTEXT_H
18 #define CARTOGRAPHER_CLOUD_INTERNAL_TESTING_MOCK_MAP_BUILDER_CONTEXT_H
19 
22 #include "glog/logging.h"
23 #include "gmock/gmock.h"
24 #include "gtest/gtest.h"
25 
26 namespace cartographer {
27 namespace cloud {
28 namespace testing {
29 
31  public:
35  common::BlockingQueue<std::unique_ptr<MapBuilderContextInterface::Data>>
36  &());
40  void(const MapBuilderContextInterface::Data &));
43  int,
53 
54  MOCK_METHOD2(DoEnqueueSensorData, void(int, sensor::Data *));
55  void EnqueueSensorData(int trajectory_id,
56  std::unique_ptr<sensor::Data> data) override {
57  DoEnqueueSensorData(trajectory_id, data.get());
58  }
60  void(int, const std::string &,
61  const mapping::proto::LocalSlamResultData &));
62 };
63 
64 } // namespace testing
65 } // namespace cloud
66 } // namespace cartographer
67 
68 #endif // CARTOGRAPHER_CLOUD_INTERNAL_TESTING_MOCK_MAP_BUILDER_CONTEXT_H
virtual void UnsubscribeGlobalSlamOptimizations(int subscription_index)=0
virtual void UnsubscribeLocalSlamResults(const LocalSlamSubscriptionId &subscription_id)=0
MOCK_METHOD0(map_builder, mapping::MapBuilderInterface &())
std::function< bool(std::unique_ptr< LocalSlamResult >)> LocalSlamSubscriptionCallback
std::function< bool(const std::map< int, mapping::SubmapId > &, const std::map< int, mapping::NodeId > &)> GlobalSlamOptimizationCallback
MOCK_METHOD3(EnqueueLocalSlamResultData, void(int, const std::string &, const mapping::proto::LocalSlamResultData &))
virtual mapping::MapBuilderInterface & map_builder()=0
virtual LocalSlamSubscriptionId SubscribeLocalSlamResults(int trajectory_id, LocalSlamSubscriptionCallback callback)=0
virtual common::BlockingQueue< std::unique_ptr< Data > > & sensor_data_queue()=0
virtual mapping::TrajectoryBuilderInterface::LocalSlamResultCallback GetLocalSlamResultCallbackForSubscriptions()=0
virtual void AddSensorDataToTrajectory(const Data &sensor_data)=0
virtual int SubscribeGlobalSlamOptimizations(GlobalSlamOptimizationCallback callback)=0
MOCK_METHOD1(AddSensorDataToTrajectory, void(const MapBuilderContextInterface::Data &))
virtual void EnqueueLocalSlamResultData(int trajectory_id, const std::string &sensor_id, const mapping::proto::LocalSlamResultData &local_slam_result_data)=0
MOCK_METHOD2(SubscribeLocalSlamResults, MapBuilderContextInterface::LocalSlamSubscriptionId(int, MapBuilderContextInterface::LocalSlamSubscriptionCallback))
void EnqueueSensorData(int trajectory_id, std::unique_ptr< sensor::Data > data) override
virtual LocalTrajectoryUploaderInterface * local_trajectory_uploader()=0
std::function< void(int, common::Time, transform::Rigid3d, sensor::RangeData, std::unique_ptr< const InsertionResult >)> LocalSlamResultCallback
virtual void NotifyFinishTrajectory(int trajectory_id)=0


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