pybind_wrapper.tpl 525 B

1234567891011121314151617181920212223242526272829
  1. {include_boost}
  2. #include <pybind11/eigen.h>
  3. #include <pybind11/stl_bind.h>
  4. #include <pybind11/pybind11.h>
  5. #include <pybind11/operators.h>
  6. #include "gtsam/nonlinear/utilities.h" // for RedirectCout.
  7. {includes}
  8. #include "wrap/serialization.h"
  9. #include <boost/serialization/export.hpp>
  10. {boost_class_export}
  11. {holder_type}
  12. using namespace std;
  13. namespace py = pybind11;
  14. PYBIND11_MODULE({module_name}, m_) {{
  15. m_.doc() = "pybind11 wrapper of {module_name}";
  16. {wrapped_namespace}
  17. #include "python/specializations.h"
  18. }}