#include #include #include #include #include "gtsam/nonlinear/utilities.h" // for RedirectCout. #include "gtsam/geometry/Pose3.h" #include "wrap/serialization.h" #include using namespace std; namespace py = pybind11; PYBIND11_MODULE(operator_py, m_) { m_.doc() = "pybind11 wrapper of operator_py"; pybind11::module m_gtsam = m_.def_submodule("gtsam", "gtsam submodule"); py::class_>(m_gtsam, "Pose3") .def(py::init<>()) .def(py::init(), py::arg("R"), py::arg("t")) .def(py::self * py::self); py::class_, std::shared_ptr>>(m_gtsam, "ContainerMatrix") .def("__call__", >sam::Container::operator()) .def("__getitem__", >sam::Container::operator[]); #include "python/specializations.h" }