Introduced namespace
parent
acdc3304e0
commit
fe33c80b5f
|
@ -48,7 +48,7 @@ int main(const int argc, const char *argv[]) {
|
||||||
graphWithPrior.print();
|
graphWithPrior.print();
|
||||||
|
|
||||||
std::cout << "Computing LAGO estimate" << std::endl;
|
std::cout << "Computing LAGO estimate" << std::endl;
|
||||||
Values estimateLago = initializeLago(graphWithPrior);
|
Values estimateLago = lago::initializeLago(graphWithPrior);
|
||||||
std::cout << "done!" << std::endl;
|
std::cout << "done!" << std::endl;
|
||||||
|
|
||||||
if (argc < 3) {
|
if (argc < 3) {
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#include <boost/math/special_functions.hpp>
|
#include <boost/math/special_functions.hpp>
|
||||||
|
|
||||||
namespace gtsam {
|
namespace gtsam {
|
||||||
|
namespace lago {
|
||||||
|
|
||||||
static Matrix I = eye(1);
|
static Matrix I = eye(1);
|
||||||
static Matrix I3 = eye(3);
|
static Matrix I3 = eye(3);
|
||||||
|
@ -347,4 +348,5 @@ Values initializeLago(const NonlinearFactorGraph& graph, const Values& initialGu
|
||||||
return initialGuessLago;
|
return initialGuessLago;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // end of namespace lago
|
||||||
} // end of namespace gtsam
|
} // end of namespace gtsam
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
#include <gtsam/inference/graph.h>
|
#include <gtsam/inference/graph.h>
|
||||||
|
|
||||||
namespace gtsam {
|
namespace gtsam {
|
||||||
|
namespace lago {
|
||||||
|
|
||||||
typedef std::map<Key,double> key2doubleMap;
|
typedef std::map<Key,double> key2doubleMap;
|
||||||
const Key keyAnchor = symbol('Z',9999999);
|
const Key keyAnchor = symbol('Z',9999999);
|
||||||
|
@ -93,4 +94,5 @@ GTSAM_EXPORT Values initializeLago(const NonlinearFactorGraph& graph, bool useOd
|
||||||
/* Only corrects the orientation part in initialGuess */
|
/* Only corrects the orientation part in initialGuess */
|
||||||
GTSAM_EXPORT Values initializeLago(const NonlinearFactorGraph& graph, const Values& initialGuess);
|
GTSAM_EXPORT Values initializeLago(const NonlinearFactorGraph& graph, const Values& initialGuess);
|
||||||
|
|
||||||
|
} // end of namespace lago
|
||||||
} // end of namespace gtsam
|
} // end of namespace gtsam
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace gtsam;
|
using namespace gtsam;
|
||||||
|
using namespace lago;
|
||||||
using namespace boost::assign;
|
using namespace boost::assign;
|
||||||
|
|
||||||
Symbol x0('x', 0), x1('x', 1), x2('x', 2), x3('x', 3);
|
Symbol x0('x', 0), x1('x', 1), x2('x', 2), x3('x', 3);
|
||||||
|
|
Loading…
Reference in New Issue