17 #ifndef CARTOGRAPHER_MAPPING_INTERNAL_TESTING_MOCK_POSE_GRAPH_H_ 18 #define CARTOGRAPHER_MAPPING_INTERNAL_TESTING_MOCK_POSE_GRAPH_H_ 21 #include "glog/logging.h" 22 #include "gmock/gmock.h" 23 #include "gtest/gtest.h" 47 std::map<std::string, transform::Rigid3d>());
54 std::map<int, mapping::PoseGraphInterface::TrajectoryData>());
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 void RunFinalOptimization()=0
virtual transform::Rigid3d GetLocalToGlobalTransform(int trajectory_id) const =0
~MockPoseGraph() override=default
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