17 #ifndef CARTOGRAPHER_MAPPING_INTERNAL_TESTING_TEST_HELPERS_H_ 18 #define CARTOGRAPHER_MAPPING_INTERNAL_TESTING_TEST_HELPERS_H_ 23 #include "cartographer/mapping/proto/serialization.pb.h" 30 std::unique_ptr<::cartographer::common::LuaParameterDictionary>
33 std::vector<cartographer::sensor::TimedPointCloudData>
39 proto::Node
CreateFakeNode(
int trajectory_id = 1,
int node_index = 1);
42 const proto::Submap& submap);
45 proto::PoseGraph* pose_graph);
50 proto::PoseGraph* pose_graph);
53 proto::PoseGraph* pose_graph);
56 proto::PoseGraph* pose_graph);
58 void AddToProtoGraph(
const proto::PoseGraph::LandmarkPose& landmark_node,
59 proto::PoseGraph* pose_graph);
65 #endif // CARTOGRAPHER_MAPPING_INTERNAL_TESTING_TEST_HELPERS_H_
proto::PoseGraph::Constraint CreateFakeConstraint(const proto::Node &node, const proto::Submap &submap)
void AddToProtoGraph(const proto::Node &node_data, proto::PoseGraph *pose_graph)
std::vector< cartographer::sensor::TimedPointCloudData > GenerateFakeRangeMeasurements(double travel_distance, double duration, double time_step)
proto::Submap CreateFakeSubmap3D(int trajectory_id, int submap_index)
proto::PoseGraph::LandmarkPose CreateFakeLandmark(const std::string &landmark_id, const transform::Rigid3d &global_pose)
proto::Node CreateFakeNode(int trajectory_id, int node_index)
std::unique_ptr<::cartographer::common::LuaParameterDictionary > ResolveLuaParameters(const std::string &lua_code)
proto::Trajectory * CreateTrajectoryIfNeeded(int trajectory_id, proto::PoseGraph *pose_graph)