default value for string arg in print

release/4.3a0
Varun Agrawal 2023-09-26 17:51:52 -04:00
parent aebff10f05
commit e096af463d
3 changed files with 4 additions and 4 deletions

View File

@ -74,7 +74,7 @@ class GTSAM_EXPORT Similarity2 : public LieGroup<Similarity2, 4> {
bool operator==(const Similarity2& other) const; bool operator==(const Similarity2& other) const;
/// Print with optional string /// Print with optional string
void print(const std::string& s) const; void print(const std::string& s = "") const;
GTSAM_EXPORT friend std::ostream& operator<<(std::ostream& os, GTSAM_EXPORT friend std::ostream& operator<<(std::ostream& os,
const Similarity2& p); const Similarity2& p);

View File

@ -75,7 +75,7 @@ class GTSAM_EXPORT Similarity3 : public LieGroup<Similarity3, 7> {
bool operator==(const Similarity3& other) const; bool operator==(const Similarity3& other) const;
/// Print with optional string /// Print with optional string
void print(const std::string& s) const; void print(const std::string& s = "") const;
GTSAM_EXPORT friend std::ostream& operator<<(std::ostream& os, GTSAM_EXPORT friend std::ostream& operator<<(std::ostream& os,
const Similarity3& p); const Similarity3& p);

View File

@ -1082,7 +1082,7 @@ class Similarity2 {
// Standard Interface // Standard Interface
bool equals(const gtsam::Similarity2& sim, double tol) const; bool equals(const gtsam::Similarity2& sim, double tol) const;
void print(const std::string& s) const; void print(const std::string& s = "") const;
Matrix matrix() const; Matrix matrix() const;
gtsam::Rot2& rotation(); gtsam::Rot2& rotation();
gtsam::Point2& translation(); gtsam::Point2& translation();
@ -1106,7 +1106,7 @@ class Similarity3 {
// Standard Interface // Standard Interface
bool equals(const gtsam::Similarity3& sim, double tol) const; bool equals(const gtsam::Similarity3& sim, double tol) const;
void print(const std::string& s) const; void print(const std::string& s = "") const;
Matrix matrix() const; Matrix matrix() const;
gtsam::Rot3& rotation(); gtsam::Rot3& rotation();
gtsam::Point3& translation(); gtsam::Point3& translation();