Skip to content

Commit 32acaec

Browse files
authored
Merge pull request #754 from borglab/feature/preint-params-print
Fix printing of preintegration params
2 parents 301f7fe + 1cdc6c1 commit 32acaec

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

gtsam/navigation/PreintegrationBase.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* @author Vadim Indelman
1818
* @author David Jensen
1919
* @author Frank Dellaert
20+
* @author Varun Agrawal
2021
**/
2122

2223
#include "PreintegrationBase.h"
@@ -35,12 +36,12 @@ PreintegrationBase::PreintegrationBase(const boost::shared_ptr<Params>& p,
3536

3637
//------------------------------------------------------------------------------
3738
ostream& operator<<(ostream& os, const PreintegrationBase& pim) {
38-
os << " deltaTij " << pim.deltaTij_ << endl;
39+
os << " deltaTij = " << pim.deltaTij_ << endl;
3940
os << " deltaRij.ypr = (" << pim.deltaRij().ypr().transpose() << ")" << endl;
40-
os << " deltaPij " << Point3(pim.deltaPij()) << endl;
41-
os << " deltaVij " << Point3(pim.deltaVij()) << endl;
42-
os << " gyrobias " << Point3(pim.biasHat_.gyroscope()) << endl;
43-
os << " acc_bias " << Point3(pim.biasHat_.accelerometer()) << endl;
41+
os << " deltaPij = " << pim.deltaPij().transpose() << endl;
42+
os << " deltaVij = " << pim.deltaVij().transpose() << endl;
43+
os << " gyrobias = " << pim.biasHat_.gyroscope().transpose() << endl;
44+
os << " acc_bias = " << pim.biasHat_.accelerometer().transpose() << endl;
4445
return os;
4546
}
4647

0 commit comments

Comments
 (0)