Skip to content

Commit

Permalink
print nonlinear part of HybridValues
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Sep 19, 2024
1 parent 717eb7e commit f875b86
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions gtsam/hybrid/HybridValues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ HybridValues::HybridValues(const VectorValues& cv, const DiscreteValues& dv,
void HybridValues::print(const std::string& s,
const KeyFormatter& keyFormatter) const {
std::cout << s << ": \n";
continuous_.print(" Continuous",
keyFormatter); // print continuous components
discrete_.print(" Discrete", keyFormatter); // print discrete components
// print continuous components
continuous_.print(" Continuous", keyFormatter);
// print discrete components
discrete_.print(" Discrete", keyFormatter);
// print nonlinear components
nonlinear_.print(" Nonlinear", keyFormatter);
}

/* ************************************************************************* */
Expand Down

0 comments on commit f875b86

Please sign in to comment.