17 #ifndef CARTOGRAPHER_MAPPING_3D_TRANSLATION_COST_FUNCTION_H_ 18 #define CARTOGRAPHER_MAPPING_3D_TRANSLATION_COST_FUNCTION_H_ 21 #include "Eigen/Geometry" 24 namespace mapping_3d {
30 const double delta_time_seconds)
39 const T*
const end_translation,
const T*
const velocity,
41 const T delta_x = end_translation[0] - start_translation[0];
42 const T delta_y = end_translation[1] - start_translation[1];
43 const T delta_z = end_translation[2] - start_translation[2];
62 #endif // CARTOGRAPHER_MAPPING_3D_TRANSLATION_COST_FUNCTION_H_ TranslationCostFunction & operator=(const TranslationCostFunction &)=delete
const double delta_time_seconds_
bool operator()(const T *const start_translation, const T *const end_translation, const T *const velocity, T *residual) const
TranslationCostFunction(const double scaling_factor, const double delta_time_seconds)
const double scaling_factor_