17 #ifndef CARTOGRAPHER_MAPPING_3D_ROTATION_COST_FUNCTION_H_ 18 #define CARTOGRAPHER_MAPPING_3D_ROTATION_COST_FUNCTION_H_ 21 #include "Eigen/Geometry" 24 namespace mapping_3d {
30 const Eigen::Quaterniond& delta_rotation_imu_frame)
38 bool operator()(
const T*
const start_rotation,
const T*
const end_rotation,
40 const Eigen::Quaternion<T> start(start_rotation[0], start_rotation[1],
41 start_rotation[2], start_rotation[3]);
42 const Eigen::Quaternion<T> end(end_rotation[0], end_rotation[1],
43 end_rotation[2], end_rotation[3]);
44 const Eigen::Quaternion<T> error =
60 #endif // CARTOGRAPHER_MAPPING_3D_ROTATION_COST_FUNCTION_H_
RotationCostFunction & operator=(const RotationCostFunction &)=delete
bool operator()(const T *const start_rotation, const T *const end_rotation, T *residual) const
const double scaling_factor_
const Eigen::Quaterniond delta_rotation_imu_frame_
RotationCostFunction(const double scaling_factor, const Eigen::Quaterniond &delta_rotation_imu_frame)