#include #include #include #include #include #include template void exportPriorFactor(const std::string& name); template void exportBetweenFactor(const std::string& name); BOOST_PYTHON_MODULE(libgeometry){ using namespace boost::python; typedef gtsam::PriorFactor Point2PriorFactor; typedef gtsam::PriorFactor Pose2PriorFactor; exportPriorFactor("Point2PriorFactor"); exportPriorFactor("Pose2PriorFactor"); typedef gtsam::BetweenFactor Pose2BetweenFactor; exportBetweenFactor("Pose2BetweenFactor"); }