9 #include <boost/serialization/export.hpp>
20 m_.doc() =
"pybind11 wrapper of geometry_py";
24 py::class_<gtsam::Point2, std::shared_ptr<gtsam::Point2>>(m_gtsam,
"Point2")
30 .def(
"returnChar",[](
gtsam::Point2*
self){
return self->returnChar();})
40 .def(
"vectorConfusion",[](
gtsam::Point2*
self){
return self->vectorConfusion();})
41 .def(
"serialize", [](
gtsam::Point2*
self){
return gtsam::serialize(*
self); })
42 .def(
"deserialize", [](
gtsam::Point2*
self,
string serialized){ gtsam::deserialize(serialized, *
self); },
py::arg(
"serialized"))
45 [](py::tuple
t){
gtsam::Point2 obj; gtsam::deserialize(
t[0].cast<std::string>(), obj);
return obj; }));
47 py::class_<gtsam::Point3, std::shared_ptr<gtsam::Point3>>(m_gtsam,
"Point3")
50 .def(
"serialize", [](
gtsam::Point3*
self){
return gtsam::serialize(*
self); })
51 .def(
"deserialize", [](
gtsam::Point3*
self,
string serialized){ gtsam::deserialize(serialized, *
self); },
py::arg(
"serialized"))
54 [](py::tuple
t){
gtsam::Point3 obj; gtsam::deserialize(
t[0].cast<std::string>(), obj);
return obj; }))
55 .def_static(
"staticFunction",[](){
return gtsam::Point3::staticFunction();})
56 .def_static(
"StaticFunctionRet",[](
double z){
return gtsam::Point3::StaticFunctionRet(
z);},
py::arg(
"z"));
59 #include "python/specializations.h"