preamble/custom.h
Go to the documentation of this file.
1 /* Please refer to:
2  * https://pybind11.readthedocs.io/en/stable/advanced/cast/stl.html
3  * These are required to save one copy operation on Python calls.
4  *
5  * NOTES
6  * =================
7  *
8  * `PYBIND11_MAKE_OPAQUE` will mark the type as "opaque" for the pybind11
9  * automatic STL binding, such that the raw objects can be accessed in Python.
10  * Without this they will be automatically converted to a Python object, and all
11  * mutations on Python side will not be reflected on C++.
12  */
13 
14 // Added so that CustomFactor can pass the JacobianVector to the C++ side
15 PYBIND11_MAKE_OPAQUE(std::vector<gtsam::Matrix>); // JacobianVector
PYBIND11_MAKE_OPAQUE(std::vector< gtsam::Matrix >)


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:34:06