mock_map_builder.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_MAPPING_INTERNAL_TESTING_MOCK_MAP_BUILDER_H_
18 #define CARTOGRAPHER_MAPPING_INTERNAL_TESTING_MOCK_MAP_BUILDER_H_
19 
23 #include "glog/logging.h"
24 #include "gmock/gmock.h"
25 #include "gtest/gtest.h"
26 
27 using testing::_;
28 
29 namespace cartographer {
30 namespace mapping {
31 namespace testing {
32 
34  public:
37  int(const std::set<SensorId> &expected_sensor_ids,
38  const mapping::proto::TrajectoryBuilderOptions &trajectory_options,
40  local_slam_result_callback));
42  int(const mapping::proto::TrajectoryBuilderOptionsWithSensorIds
43  &options_with_sensor_ids_proto));
45  mapping::TrajectoryBuilderInterface *(int trajectory_id));
46  MOCK_METHOD1(FinishTrajectory, void(int trajectory_id));
48  std::string(const mapping::SubmapId &,
49  mapping::proto::SubmapQuery::Response *));
56  const std::vector<mapping::proto::TrajectoryBuilderOptionsWithSensorIds>
57  &());
58 };
59 
60 } // namespace testing
61 } // namespace mapping
62 } // namespace cartographer
63 
64 #endif // CARTOGRAPHER_MAPPING_INTERNAL_TESTING_MOCK_MAP_BUILDER_H_
MOCK_METHOD1(AddTrajectoryForDeserialization, int(const mapping::proto::TrajectoryBuilderOptionsWithSensorIds &options_with_sensor_ids_proto))
TrajectoryBuilderInterface::LocalSlamResultCallback LocalSlamResultCallback
virtual std::string SubmapToProto(const SubmapId &submap_id, proto::SubmapQuery::Response *response)=0
virtual void FinishTrajectory(int trajectory_id)=0
virtual void LoadState(io::ProtoStreamReaderInterface *reader, bool load_frozen_state)=0
virtual int AddTrajectoryBuilder(const std::set< SensorId > &expected_sensor_ids, const proto::TrajectoryBuilderOptions &trajectory_options, LocalSlamResultCallback local_slam_result_callback)=0
MOCK_CONST_METHOD0(num_trajectory_builders, int())
virtual const std::vector< proto::TrajectoryBuilderOptionsWithSensorIds > & GetAllTrajectoryBuilderOptions() const =0
MOCK_METHOD2(SubmapToProto, std::string(const mapping::SubmapId &, mapping::proto::SubmapQuery::Response *))
virtual mapping::PoseGraphInterface * pose_graph()=0
MOCK_METHOD0(pose_graph, mapping::PoseGraphInterface *())
virtual int num_trajectory_builders() const =0
virtual int AddTrajectoryForDeserialization(const proto::TrajectoryBuilderOptionsWithSensorIds &options_with_sensor_ids_proto)=0
virtual void SerializeState(io::ProtoStreamWriterInterface *writer)=0
virtual mapping::TrajectoryBuilderInterface * GetTrajectoryBuilder(int trajectory_id) const =0
MOCK_METHOD3(AddTrajectoryBuilder, int(const std::set< SensorId > &expected_sensor_ids, const mapping::proto::TrajectoryBuilderOptions &trajectory_options, mapping::MapBuilderInterface::LocalSlamResultCallback local_slam_result_callback))
MOCK_CONST_METHOD1(GetTrajectoryBuilder, mapping::TrajectoryBuilderInterface *(int trajectory_id))


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