Got rid of (defunct) "dump" methods

release/4.3a0
Frank Dellaert 2009-10-31 17:13:36 +00:00
parent c046fed37c
commit 921cb0a8fc
10 changed files with 0 additions and 66 deletions

View File

@ -91,13 +91,6 @@ namespace gtsam {
return Point2(fx_ * x + s_ * y + u0_, fy_ * y + v0_);
}
std::string dump() const {
char buffer[100];
buffer[0] = 0;
sprintf(buffer, "%f %f %f %f %f", fx_, fy_, s_, u0_, v0_);
return std::string(buffer);
}
/** friends */
friend Matrix Duncalibrate2(const Cal3_S2& K, const Point2& p);

View File

@ -59,8 +59,6 @@ namespace gtsam {
*/
virtual double error(const Config& c) const = 0;
virtual std::string dump() const = 0;
/**
* return keys in preferred order
*/

View File

@ -99,11 +99,6 @@ list<string> LinearConstraint::keys(const std::string& key) const {
return ret;
}
string LinearConstraint::dump() const {
string ret;
return ret;
}
LinearConstraint::shared_ptr combineConstraints(
const set<LinearConstraint::shared_ptr>& constraints) {
map<string, Matrix> blocks;

View File

@ -90,10 +90,6 @@ public:
*/
ConstrainedConditionalGaussian::shared_ptr
eliminate(const std::string& key);
/**
* returns a version of the factor as a string
*/
std::string dump() const;
/** get a copy of b */
const Vector& get_b() const {

View File

@ -120,7 +120,6 @@ public:
// Implementing Factor virtual functions
double error(const VectorConfig& c) const; /** 0.5*(A*x-b)'*(A*x-b) */
std::string dump() const { return "";}
std::size_t size() const { return As.size();}
/** STL like, return the iterator pointing to the first node */

View File

@ -98,9 +98,6 @@ namespace gtsam {
/** get the size of the factor */
std::size_t size() const{return keys_.size();}
/** dump the information of the factor into a string **/
std::string dump() const{return "";}
private:
/** Serialization function */
@ -149,8 +146,6 @@ namespace gtsam {
/** linearize a non-linearFactor1 to get a linearFactor1 */
boost::shared_ptr<LinearFactor> linearize(const VectorConfig& c) const;
std::string dump() const {return "";}
};
/**
@ -193,8 +188,6 @@ namespace gtsam {
/** Linearize a non-linearFactor2 to get a linearFactor2 */
boost::shared_ptr<LinearFactor> linearize(const VectorConfig& c) const;
std::string dump() const{return "";};
};
/* ************************************************************************* */

View File

@ -86,21 +86,3 @@ bool VSLAMFactor<Config>::equals(const NonlinearFactor<Config>& f, double tol) c
}
/* ************************************************************************* */
template <class Config>
string VSLAMFactor<Config>::dump() const
{
int i = getCameraFrameNumber();
int j = getLandmarkNumber();
Vector z = ConvenientFactor::measurement();
char buffer[200];
buffer[0] = 0;
sprintf(buffer, "1 %d %d %f %d", i, j , ConvenientFactor::sigma(), (int)z.size());
for(size_t i = 0; i < z.size(); i++)
sprintf(buffer, "%s %f", buffer, z(i));
sprintf(buffer, "%s %s", buffer, K_.dump().c_str());
return string(buffer);
string temp;
return temp;
}

View File

@ -66,11 +66,6 @@ class VSLAMFactor : public NonlinearFactor<Config>
int getCameraFrameNumber() const { return cameraFrameNumber_; }
int getLandmarkNumber() const { return landmarkNumber_; }
/**
* dump the information of the factor into a string
*/
std::string dump() const;
};
}

View File

@ -106,18 +106,6 @@ namespace gtsam {
odprintf("]\n");
}
/* ************************************************************************* */
string dump(const Vector& v)
{
ostringstream oss;
oss << "[";
size_t n = v.size();
for(size_t i=0; i<n; i++)
oss << v[i] << (i<n-1 ? "; " : "");
oss << "]";
return oss.str();
}
/* ************************************************************************* */
bool operator==(const Vector& vec1,const Vector& vec2) {
Vector::const_iterator it1 = vec1.begin();

View File

@ -56,11 +56,6 @@ bool zero(const Vector& v);
*/
void print(const Vector& v, const std::string& s = "");
/**
* returns a string suitable for printing
*/
std::string dump(const Vector& v);
/**
* operator==()
*/