Skip to content

Commit

Permalink
fix build with ceres<2.1 (#1437)
Browse files Browse the repository at this point in the history
  • Loading branch information
borongyuan authored Jan 19, 2025
1 parent 7baf435 commit 3ab9a69
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions corelib/src/optimizer/ceres/pose_graph_2d/angle_manifold.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,13 @@
#ifndef CERES_EXAMPLES_POSE_GRAPH_2D_ANGLE_MANIFOLD_H_
#define CERES_EXAMPLES_POSE_GRAPH_2D_ANGLE_MANIFOLD_H_

#include "ceres/autodiff_manifold.h"
#include "ceres/manifold.h"
#if CERES_VERSION_MAJOR >= 3 || \
(CERES_VERSION_MAJOR == 2 && CERES_VERSION_MINOR >= 1)
#include <ceres/autodiff_manifold.h>
#include <ceres/manifold.h>
#else
#include <ceres/local_parameterization.h>
#endif
#include "normalize_angle.h"

namespace ceres {
Expand Down

0 comments on commit 3ab9a69

Please sign in to comment.