2014-01-31 23:49:30 +08:00
|
|
|
/*
|
|
|
|
|
* MultiDisparityFactor.cpp
|
|
|
|
|
*
|
|
|
|
|
* Created on: Jan 30, 2014
|
|
|
|
|
* Author: nsrinivasan7
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2014-02-01 04:33:02 +08:00
|
|
|
#include "MultiDisparityFactor.h"
|
|
|
|
|
#include <gtsam/nonlinear/NonlinearFactor.h>
|
2014-01-31 23:49:30 +08:00
|
|
|
|
|
|
|
|
|
2014-02-01 04:33:02 +08:00
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
namespace gtsam {
|
|
|
|
|
|
|
|
|
|
//***************************************************************************
|
|
|
|
|
|
|
|
|
|
void MultiDisparityFactor::print(const string& s) const {
|
|
|
|
|
cout << "Prior Factor on " << landmarkKey_ << "\n";
|
|
|
|
|
cout << "Measured Disparities : \n " << disparities_ << "\n";
|
|
|
|
|
this->noiseModel_->print(" Noise model: ");
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//***************************************************************************
|
|
|
|
|
|
|
|
|
|
Vector MultiDisparityFactor::evaluateError(const OrientedPlane3& plane,
|
|
|
|
|
boost::optional<Matrix&> H) const {
|
|
|
|
|
|
|
|
|
|
return Vector_(3,1,1,1);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|