31 #ifndef EXAMPLES_CERES_POSE_GRAPH_3D_ERROR_TERM_H_
32 #define EXAMPLES_CERES_POSE_GRAPH_3D_ERROR_TERM_H_
35 #include "ceres/autodiff_cost_function.h"
79 const T*
const p_b_ptr,
const T*
const q_b_ptr,
80 T* residuals_ptr)
const {
102 residuals.template block<3, 1>(0, 0) =
104 residuals.template block<3, 1>(3, 0) =
T(2.0) * delta_q.vec();
113 const Pose3d& t_ab_measured,
115 return new ceres::AutoDiffCostFunction<PoseGraph3dErrorTerm, 6, 3, 4, 3, 4>(
131 #endif // EXAMPLES_CERES_POSE_GRAPH_3D_ERROR_TERM_H_