Skip to content
Snippets Groups Projects
Commit 7e150639 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

debugging couts

parent 5ae9ba29
No related branches found
No related tags found
2 merge requests!39release after RAL,!38After 2nd RAL submission
...@@ -398,6 +398,31 @@ inline bool FactorImu::residual(const Eigen::MatrixBase<D1> & _p1, ...@@ -398,6 +398,31 @@ inline bool FactorImu::residual(const Eigen::MatrixBase<D1> & _p1,
////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////// PRINT VALUES /////////////////////////////////// ///////////////////////////////// PRINT VALUES ///////////////////////////////////
#if 0 #if 0
if (sizeof(T) == sizeof(double))
{
std::cout << "Frames " << getFrame()->id() << " - " << getFrameOther()->id() << std::endl;
std::cout << "\tpreint: " << acc_bias_preint_.transpose()
<< " " << gyro_bias_preint_.transpose() << std::endl;
std::cout << "\tb1: " << _ab1(0) << " "
<< _ab1(1) << " "
<< _ab1(2) << " "
<< _wb1(0) << " "
<< _wb1(1) << " "
<< _wb1(2) << "\n";
std::cout << "\tb2: " << _ab2(0) << " "
<< _ab2(1) << " "
<< _ab2(2) << " "
<< _wb2(0) << " "
<< _wb2(1) << " "
<< _wb2(2) << "\n";
std::cout << "\tb2-b1 " << _ab2(0)-_ab1(0) << " "
<< _ab2(1)-_ab1(1) << " "
<< _ab2(2)-_ab1(2) << " "
<< _wb2(0)-_wb1(0) << " "
<< _wb2(1)-_wb1(1) << " "
<< _wb2(2)-_wb1(2) << "\n";
}
// print values ----------------------- // print values -----------------------
Matrix<T, 10, 1> x1; x1 << _p1 , _q1.coeffs(), _v1; Matrix<T, 10, 1> x1; x1 << _p1 , _q1.coeffs(), _v1;
Matrix<T, 10, 1> x2; x2 << _p2 , _q2.coeffs(), _v2; Matrix<T, 10, 1> x2; x2 << _p2 , _q2.coeffs(), _v2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment