Small changes
parent
659caa58c1
commit
c4494ba969
|
@ -33,17 +33,17 @@ using namespace gtsam;
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
// template<class VALUE>
|
// template<class T>
|
||||||
// void exportBetweenFactor(const std::string& name){
|
// void exportBetweenFactor(const std::string& name){
|
||||||
// class_<VALUE>(name, init<>())
|
// class_<T>(name, init<>())
|
||||||
// .def(init<Key, Key, VALUE, SharedNoiseModel>())
|
// .def(init<Key, Key, T, SharedNoiseModel>())
|
||||||
// ;
|
// ;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
#define BETWEENFACTOR(VALUE) \
|
#define BETWEENFACTOR(T) \
|
||||||
class_< BetweenFactor<VALUE>, bases<NonlinearFactor>, boost::shared_ptr< BetweenFactor<VALUE> > >("BetweenFactor"#VALUE) \
|
class_< BetweenFactor<T>, bases<NonlinearFactor>, boost::shared_ptr< BetweenFactor<T> > >("BetweenFactor"#T) \
|
||||||
.def(init<Key,Key,VALUE,noiseModel::Base::shared_ptr>()) \
|
.def(init<Key,Key,T,noiseModel::Base::shared_ptr>()) \
|
||||||
.def("measured", &BetweenFactor<VALUE>::measured, return_internal_reference<>()) \
|
.def("measured", &BetweenFactor<T>::measured, return_internal_reference<>()) \
|
||||||
;
|
;
|
||||||
|
|
||||||
void exportBetweenFactors()
|
void exportBetweenFactors()
|
||||||
|
|
|
@ -54,4 +54,5 @@ void exportPriorFactors()
|
||||||
PRIORFACTOR(Point3)
|
PRIORFACTOR(Point3)
|
||||||
PRIORFACTOR(Rot3)
|
PRIORFACTOR(Rot3)
|
||||||
PRIORFACTOR(Pose3)
|
PRIORFACTOR(Pose3)
|
||||||
|
PRIORFACTOR(Vector3)
|
||||||
}
|
}
|
Loading…
Reference in New Issue