Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef CARTOGRAPHER_MAPPING_INTERNAL_TESTING_MOCK_TRAJECTORY_BUILDER_H_
00018 #define CARTOGRAPHER_MAPPING_INTERNAL_TESTING_MOCK_TRAJECTORY_BUILDER_H_
00019
00020 #include "cartographer/mapping/trajectory_builder_interface.h"
00021 #include "glog/logging.h"
00022 #include "gmock/gmock.h"
00023 #include "gtest/gtest.h"
00024
00025 namespace cartographer {
00026 namespace mapping {
00027 namespace testing {
00028
00029 class MockTrajectoryBuilder : public mapping::TrajectoryBuilderInterface {
00030 public:
00031 MockTrajectoryBuilder() = default;
00032 ~MockTrajectoryBuilder() override = default;
00033
00034 MOCK_METHOD2(AddSensorData,
00035 void(const std::string &, const sensor::TimedPointCloudData &));
00036 MOCK_METHOD2(AddSensorData,
00037 void(const std::string &, const sensor::ImuData &));
00038 MOCK_METHOD2(AddSensorData,
00039 void(const std::string &, const sensor::OdometryData &));
00040 MOCK_METHOD2(AddSensorData,
00041 void(const std::string &, const sensor::FixedFramePoseData &));
00042 MOCK_METHOD2(AddSensorData,
00043 void(const std::string &, const sensor::LandmarkData &));
00044
00045
00046
00047 MOCK_METHOD1(DoAddLocalSlamResultData, void(mapping::LocalSlamResultData *));
00048 void AddLocalSlamResultData(std::unique_ptr<mapping::LocalSlamResultData>
00049 local_slam_result_data) override {
00050 DoAddLocalSlamResultData(local_slam_result_data.get());
00051 }
00052 };
00053
00054 }
00055 }
00056 }
00057
00058 #endif // CARTOGRAPHER_MAPPING_INTERNAL_TESTING_MOCK_TRAJECTORY_BUILDER_H_