Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix printing of preintegration params #754

Merged
merged 1 commit into from
Apr 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions gtsam/navigation/PreintegrationBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
* @author Vadim Indelman
* @author David Jensen
* @author Frank Dellaert
* @author Varun Agrawal
**/

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

//------------------------------------------------------------------------------
ostream& operator<<(ostream& os, const PreintegrationBase& pim) {
os << " deltaTij " << pim.deltaTij_ << endl;
os << " deltaTij = " << pim.deltaTij_ << endl;
os << " deltaRij.ypr = (" << pim.deltaRij().ypr().transpose() << ")" << endl;
os << " deltaPij " << Point3(pim.deltaPij()) << endl;
os << " deltaVij " << Point3(pim.deltaVij()) << endl;
os << " gyrobias " << Point3(pim.biasHat_.gyroscope()) << endl;
os << " acc_bias " << Point3(pim.biasHat_.accelerometer()) << endl;
os << " deltaPij = " << pim.deltaPij().transpose() << endl;
os << " deltaVij = " << pim.deltaVij().transpose() << endl;
os << " gyrobias = " << pim.biasHat_.gyroscope().transpose() << endl;
os << " acc_bias = " << pim.biasHat_.accelerometer().transpose() << endl;
return os;
}

Expand Down