Ceres库使用重点部分小总结 1、定义代价函数计算模型 slambook2/ch6/ceresCurveFitting.cpp template <typename T> bool operator() ( const T* const abc, // 参数块 T* residual ) const // 残差块 { //代价函数 residual[0] = T ( _y ) - ceres::exp ( abc[0]*T ( _x ) *T ( _x ) + abc[1]*T ( _x ) <