17 #ifndef CARTOGRAPHER_MAPPING_INTERNAL_3D_SCAN_MATCHING_TRANSLATION_DELTA_COST_FUNCTOR_3D_H_ 18 #define CARTOGRAPHER_MAPPING_INTERNAL_3D_SCAN_MATCHING_TRANSLATION_DELTA_COST_FUNCTOR_3D_H_ 21 #include "ceres/ceres.h" 25 namespace scan_matching {
32 const double scaling_factor,
const Eigen::Vector3d& target_translation) {
40 bool operator()(
const T*
const translation, T* residual)
const {
51 const double scaling_factor,
const Eigen::Vector3d& target_translation)
53 x_(target_translation.x()),
54 y_(target_translation.y()),
55 z_(target_translation.z()) {}
71 #endif // CARTOGRAPHER_MAPPING_INTERNAL_3D_SCAN_MATCHING_TRANSLATION_DELTA_COST_FUNCTOR_3D_H_ TranslationDeltaCostFunctor3D & operator=(const TranslationDeltaCostFunctor3D &)=delete
const double scaling_factor_
TranslationDeltaCostFunctor3D(const double scaling_factor, const Eigen::Vector3d &target_translation)
static ceres::CostFunction * CreateAutoDiffCostFunction(const double scaling_factor, const Eigen::Vector3d &target_translation)
bool operator()(const T *const translation, T *residual) const