20 namespace mapping_3d {
24 std::unique_ptr<ceres::LocalParameterization> translation_parametrization,
25 std::unique_ptr<ceres::LocalParameterization> rotation_parametrization,
26 ceres::Problem* problem)
29 rotation_({{rigid.rotation().w(), rigid.rotation().x(),
30 rigid.rotation().y(), rigid.rotation().z()}}) {
32 translation_parametrization.release());
33 problem->AddParameterBlock(
rotation_.data(), 4,
34 rotation_parametrization.release());
std::array< double, 4 > rotation_
std::array< double, 3 > translation_
const transform::Rigid3d ToRigid() const
CeresPose(const transform::Rigid3d &rigid, std::unique_ptr< ceres::LocalParameterization > translation_parametrization, std::unique_ptr< ceres::LocalParameterization > rotation_parametrization, ceres::Problem *problem)