printing updates

release/4.3a0
Varun Agrawal 2022-03-11 08:42:08 -05:00
parent 8496565d9d
commit b9f6d67fc7
2 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,6 @@ void PreintegrationParams::print(const string& s) const {
<< endl; << endl;
if (omegaCoriolis && use2ndOrderCoriolis) if (omegaCoriolis && use2ndOrderCoriolis)
cout << "Using 2nd-order Coriolis" << endl; cout << "Using 2nd-order Coriolis" << endl;
if (body_P_sensor) body_P_sensor->print(" ");
cout << "n_gravity = (" << n_gravity.transpose() << ")" << endl; cout << "n_gravity = (" << n_gravity.transpose() << ")" << endl;
} }

View File

@ -80,7 +80,9 @@ namespace gtsam {
/// @{ /// @{
/// print with optional string /// print with optional string
void print(const std::string& s, const KeyFormatter& keyFormatter = DefaultKeyFormatter) const override { void print(
const std::string& s = "",
const KeyFormatter& keyFormatter = DefaultKeyFormatter) const override {
std::cout << s << "BetweenFactor(" std::cout << s << "BetweenFactor("
<< keyFormatter(this->key1()) << "," << keyFormatter(this->key1()) << ","
<< keyFormatter(this->key2()) << ")\n"; << keyFormatter(this->key2()) << ")\n";