gtsam/python/gtsam/gtsam.tpl

58 lines
1.3 KiB
Smarty
Raw Normal View History

2020-08-18 23:26:34 +08:00
/**
* @file {module_name}.cpp
2020-08-18 23:26:34 +08:00
* @brief The auto-generated wrapper C++ source code.
* @author Duy-Nguyen Ta, Fan Jiang, Matthew Sklar, Varun Agrawal
* @date Aug. 18, 2020
2020-08-18 23:26:34 +08:00
*
* ** THIS FILE IS AUTO-GENERATED, DO NOT MODIFY! **
*/
2022-11-08 07:31:29 +08:00
#define PYBIND11_DETAILED_ERROR_MESSAGES
2020-08-18 23:26:34 +08:00
// Include relevant boost libraries required by GTSAM
{include_boost}
#include <pybind11/eigen.h>
#include <pybind11/stl_bind.h>
#include <pybind11/pybind11.h>
#include <pybind11/operators.h>
2021-04-08 17:23:02 +08:00
#include <pybind11/functional.h>
#include <pybind11/iostream.h>
2020-08-21 04:58:21 +08:00
#include "gtsam/config.h"
#include "gtsam/base/serialization.h"
2021-07-11 23:10:06 +08:00
#include "gtsam/base/utilities.h" // for RedirectCout.
2020-08-18 23:26:34 +08:00
// These are the included headers listed in `gtsam.i`
{includes}
#include <boost/serialization/export.hpp>
2020-08-18 23:26:34 +08:00
// Export classes for serialization
{boost_class_export}
2020-08-18 23:26:34 +08:00
// Holder type for pybind11
2021-03-14 07:30:12 +08:00
{holder_type}
2020-08-18 23:26:34 +08:00
// Preamble for STL classes
// TODO(fan): make this automatic
2021-07-11 23:10:06 +08:00
#include "python/gtsam/preamble/{module_name}.h"
using namespace std;
namespace py = pybind11;
2021-07-11 23:10:06 +08:00
{submodules}
{module_def} {{
m_.doc() = "pybind11 wrapper of {module_name}";
2021-07-11 23:10:06 +08:00
{submodules_init}
{wrapped_namespace}
2020-08-18 23:26:34 +08:00
// Specializations for STL classes
// TODO(fan): make this automatic
2021-07-11 23:10:06 +08:00
#include "python/gtsam/specializations/{module_name}.h"
}}