cleaned up a few includes to make VSLAMGraph work properly after the move into gtsam.
parent
dc3b85e43d
commit
710d396d0b
|
@ -139,7 +139,7 @@ testSimulated3D_LDADD = libgtsam.la
|
||||||
check_PROGRAMS += testSimulated3D
|
check_PROGRAMS += testSimulated3D
|
||||||
|
|
||||||
# Visual SLAM
|
# Visual SLAM
|
||||||
sources += CalibratedCamera.cpp SimpleCamera.cpp VSLAMConfig.cpp VSLAMFactor.cpp
|
sources += CalibratedCamera.cpp SimpleCamera.cpp VSLAMConfig.cpp VSLAMGraph.cpp VSLAMFactor.cpp
|
||||||
check_PROGRAMS += testCalibratedCamera testSimpleCamera testVSLAMFactor
|
check_PROGRAMS += testCalibratedCamera testSimpleCamera testVSLAMFactor
|
||||||
testCalibratedCamera_SOURCES = testCalibratedCamera.cpp
|
testCalibratedCamera_SOURCES = testCalibratedCamera.cpp
|
||||||
testCalibratedCamera_LDADD = libgtsam.la
|
testCalibratedCamera_LDADD = libgtsam.la
|
||||||
|
|
|
@ -9,13 +9,14 @@
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
|
|
||||||
//#include "VSLAMFactor.h"
|
|
||||||
#include "VSLAMGraph.h"
|
#include "VSLAMGraph.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace gtsam;
|
namespace gtsam{
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
|
//TODO: CB: This constructor is specific to loading VO data. Should probably
|
||||||
|
// get rid of this.
|
||||||
VSLAMGraph::VSLAMGraph(const std::string& path)
|
VSLAMGraph::VSLAMGraph(const std::string& path)
|
||||||
{
|
{
|
||||||
ifstream ifs(path.c_str(), ios::in);
|
ifstream ifs(path.c_str(), ios::in);
|
||||||
|
@ -98,3 +99,5 @@ VSLAMGraph::VSLAMGraph(const std::string& path,
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
|
|
||||||
|
} // namespace gtsam
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
* @author Carlos Nieto
|
* @author Carlos Nieto
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -13,15 +12,13 @@
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
#include <gtsam/NonlinearFactorGraph.h>
|
#include "NonlinearFactorGraph.h"
|
||||||
#include <gtsam/FactorGraph-inl.h>
|
#include "FactorGraph-inl.h"
|
||||||
#include "VSLAMFactor.h"
|
#include "VSLAMFactor.h"
|
||||||
#include "VSLAMFactor0.h"
|
|
||||||
#include "StereoFactor.h"
|
|
||||||
#include "VSLAMConfig.h"
|
#include "VSLAMConfig.h"
|
||||||
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
namespace gtsam{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Non-linear factor graph for visual SLAM
|
* Non-linear factor graph for visual SLAM
|
||||||
|
@ -64,3 +61,5 @@ public:
|
||||||
int Get_nFeat_ids(){return feat_ids.size();};
|
int Get_nFeat_ids(){return feat_ids.size();};
|
||||||
feat_ids_type* Get_feat_ids_map(){return &feat_ids;};
|
feat_ids_type* Get_feat_ids_map(){return &feat_ids;};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace gtsam
|
||||||
|
|
Loading…
Reference in New Issue