25 CX_LOG_WARNING() <<
"cx::roundAwayFromZero() is deprecated, and will be removed. Use std::round() or std::lround() instead.";
35 Eigen::ArrayXd qArray = Eigen::ArrayXd::Zero(7);
36 Eigen::Quaterniond qA;
38 qArray.segment<3>(4) = Tx.matrix().block<3, 1>(0,3);
39 qA = Eigen::Quaterniond(Tx.matrix().block<3, 3>(0,0));
40 qArray.segment<4>(0) = qA.coeffs();
49 Eigen::Quaterniond qA;
51 qA.coeffs() = qArray.segment<4>(0);
52 Tx.matrix().block<3, 3>(0,0) = qA.toRotationMatrix();
53 Tx.matrix().block<3, 1>(0,3) = qArray.segment<3>(4);