add GTSAM_EXPORT to various ostream operator overloads
parent
ddef644569
commit
ced6c53e06
|
@ -332,7 +332,8 @@ public:
|
|||
}
|
||||
|
||||
/// stream operator
|
||||
friend std::ostream& operator<<(std::ostream &os, const PinholePose& camera) {
|
||||
GTSAM_EXPORT friend std::ostream& operator<<(std::ostream& os,
|
||||
const PinholePose& camera) {
|
||||
os << "{R: " << camera.pose().rotation().rpy().transpose();
|
||||
os << ", t: " << camera.pose().translation().transpose();
|
||||
if (!camera.K_) os << ", K: none";
|
||||
|
|
|
@ -76,7 +76,8 @@ class GTSAM_EXPORT Similarity2 : public LieGroup<Similarity2, 4> {
|
|||
/// Print with optional string
|
||||
void print(const std::string& s) const;
|
||||
|
||||
friend std::ostream& operator<<(std::ostream& os, const Similarity2& p);
|
||||
GTSAM_EXPORT friend std::ostream& operator<<(std::ostream& os,
|
||||
const Similarity2& p);
|
||||
|
||||
/// @}
|
||||
/// @name Group
|
||||
|
|
|
@ -77,7 +77,8 @@ class GTSAM_EXPORT Similarity3 : public LieGroup<Similarity3, 7> {
|
|||
/// Print with optional string
|
||||
void print(const std::string& s) const;
|
||||
|
||||
friend std::ostream& operator<<(std::ostream& os, const Similarity3& p);
|
||||
GTSAM_EXPORT friend std::ostream& operator<<(std::ostream& os,
|
||||
const Similarity3& p);
|
||||
|
||||
/// @}
|
||||
/// @name Group
|
||||
|
|
|
@ -105,7 +105,8 @@ public:
|
|||
/// @name Testable
|
||||
/// @{
|
||||
|
||||
friend std::ostream& operator<<(std::ostream& os, const Unit3& pair);
|
||||
GTSAM_EXPORT friend std::ostream& operator<<(std::ostream& os,
|
||||
const Unit3& pair);
|
||||
|
||||
/// The print fuction
|
||||
void print(const std::string& s = std::string()) const;
|
||||
|
|
|
@ -665,8 +665,8 @@ class TriangulationResult : public std::optional<Point3> {
|
|||
return value();
|
||||
}
|
||||
// stream to output
|
||||
friend std::ostream& operator<<(std::ostream& os,
|
||||
const TriangulationResult& result) {
|
||||
GTSAM_EXPORT friend std::ostream& operator<<(
|
||||
std::ostream& os, const TriangulationResult& result) {
|
||||
if (result)
|
||||
os << "point = " << *result << std::endl;
|
||||
else
|
||||
|
|
|
@ -72,8 +72,8 @@ public:
|
|||
GTSAM_EXPORT virtual void print(std::ostream &os) const;
|
||||
|
||||
/* for serialization */
|
||||
friend std::ostream& operator<<(std::ostream &os,
|
||||
const IterativeOptimizationParameters &p);
|
||||
GTSAM_EXPORT friend std::ostream &operator<<(
|
||||
std::ostream &os, const IterativeOptimizationParameters &p);
|
||||
|
||||
GTSAM_EXPORT static Verbosity verbosityTranslator(const std::string &s);
|
||||
GTSAM_EXPORT static std::string verbosityTranslator(Verbosity v);
|
||||
|
|
Loading…
Reference in New Issue