#ifndef OPTIMIZATION_2D_POSE_GRAPH_2D_H_ #define OPTIMIZATION_2D_POSE_GRAPH_2D_H_ #include #include #include #include #include #include #include "angle_local_parameterization.h" #include "pose_graph_2d_error_term.h" #include "types.h" namespace ceres { namespace optimization_2d { void BuildOptimizationProblem(const std::vector& constraints, std::map* poses, ceres::Problem* problem); void BuildOptimizationProblemWithScale(const std::vector& constraints, std::vector& scale_data, const std::vector& scale_data_idx, std::map* poses, ceres::Problem* problem); bool SolveOptimizationProblem(ceres::Problem* problem); } // namespace optimization_2d } // namespace ceres #endif // OPTIMIZATION_2D_POSE_GRAPH_2D_H_