mock_pose_graph.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_POSE_GRAPH_H_
18 #define CARTOGRAPHER_MAPPING_INTERNAL_TESTING_MOCK_POSE_GRAPH_H_
19 
21 #include "glog/logging.h"
22 #include "gmock/gmock.h"
23 #include "gtest/gtest.h"
24 
25 namespace cartographer {
26 namespace mapping {
27 namespace testing {
28 
30  public:
31  MockPoseGraph() = default;
32  ~MockPoseGraph() override = default;
33 
47  std::map<std::string, transform::Rigid3d>());
49  void(const std::string&, const transform::Rigid3d&));
54  std::map<int, mapping::PoseGraphInterface::TrajectoryData>());
55  MOCK_CONST_METHOD0(constraints, std::vector<Constraint>());
56  MOCK_CONST_METHOD0(ToProto, mapping::proto::PoseGraph());
58  void(GlobalSlamOptimizationCallback callback));
59 };
60 
61 } // namespace testing
62 } // namespace mapping
63 } // namespace cartographer
64 
65 #endif // CARTOGRAPHER_MAPPING_INTERNAL_TESTING_MOCK_POSE_GRAPH_H_
MOCK_CONST_METHOD0(GetAllSubmapData, mapping::MapById< mapping::SubmapId, SubmapData >())
virtual void SetGlobalSlamOptimizationCallback(GlobalSlamOptimizationCallback callback)=0
virtual bool IsTrajectoryFinished(int trajectory_id) const =0
virtual void SetLandmarkPose(const std::string &landmark_id, const transform::Rigid3d &global_pose)=0
std::function< void(const std::map< int, SubmapId > &, const std::map< int, NodeId > &)> GlobalSlamOptimizationCallback
virtual std::map< std::string, transform::Rigid3d > GetLandmarkPoses() const =0
MOCK_CONST_METHOD1(GetLocalToGlobalTransform, transform::Rigid3d(int))
virtual transform::Rigid3d GetLocalToGlobalTransform(int trajectory_id) const =0
virtual proto::PoseGraph ToProto() const =0
virtual MapById< NodeId, TrajectoryNodePose > GetTrajectoryNodePoses() const =0
MOCK_METHOD2(SetLandmarkPose, void(const std::string &, const transform::Rigid3d &))
MOCK_METHOD0(RunFinalOptimization, void())
virtual std::map< int, TrajectoryData > GetTrajectoryData() const =0
MOCK_METHOD1(SetGlobalSlamOptimizationCallback, void(GlobalSlamOptimizationCallback callback))
virtual std::vector< Constraint > constraints() const =0
virtual MapById< SubmapId, SubmapData > GetAllSubmapData() const =0
virtual MapById< SubmapId, SubmapPose > GetAllSubmapPoses() const =0
virtual MapById< NodeId, TrajectoryNode > GetTrajectoryNodes() const =0
virtual bool IsTrajectoryFrozen(int trajectory_id) const =0


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