2021-07-11 23:10:05 +08:00
|
|
|
/* Please refer to:
|
|
|
|
|
* https://pybind11.readthedocs.io/en/stable/advanced/cast/stl.html
|
|
|
|
|
* These are required to save one copy operation on Python calls.
|
|
|
|
|
*
|
|
|
|
|
* NOTES
|
|
|
|
|
* =================
|
|
|
|
|
*
|
|
|
|
|
* `PYBIND11_MAKE_OPAQUE` will mark the type as "opaque" for the pybind11
|
|
|
|
|
* automatic STL binding, such that the raw objects can be accessed in Python.
|
|
|
|
|
* Without this they will be automatically converted to a Python object, and all
|
|
|
|
|
* mutations on Python side will not be reflected on C++.
|
|
|
|
|
*/
|
2021-09-02 03:29:29 +08:00
|
|
|
|
2021-07-11 23:10:05 +08:00
|
|
|
PYBIND11_MAKE_OPAQUE(gtsam::CameraSet<gtsam::PinholeCamera<gtsam::Cal3_S2>>);
|
2022-02-01 01:15:43 +08:00
|
|
|
PYBIND11_MAKE_OPAQUE(gtsam::CameraSet<gtsam::PinholeCamera<gtsam::Cal3Bundler>>);
|
|
|
|
|
PYBIND11_MAKE_OPAQUE(gtsam::CameraSet<gtsam::PinholeCamera<gtsam::Cal3Unified>>);
|
|
|
|
|
PYBIND11_MAKE_OPAQUE(gtsam::CameraSet<gtsam::PinholeCamera<gtsam::Cal3Fisheye>>);
|